OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
bs4
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📄
__init__.py
27 bytes
08/11/2011 01:28:08 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📄
test_builder_registry.py
5.45 KB
12/07/2014 02:24:22 PM
rw-r--r--
📄
test_docs.py
1.04 KB
05/03/2012 02:09:26 PM
rw-r--r--
📄
test_html5lib.py
3.82 KB
07/07/2021 10:45:56 PM
rw-r--r--
📄
test_htmlparser.py
1002 bytes
06/28/2015 07:53:42 PM
rw-r--r--
📄
test_lxml.py
2.32 KB
07/07/2021 10:45:56 PM
rw-r--r--
📄
test_soup.py
19.85 KB
07/07/2021 10:46:02 PM
rw-r--r--
📄
test_tree.py
76.2 KB
07/07/2021 10:45:58 PM
rw-r--r--
Editing: test_docs.py
Close
"Test harness for doctests." # pylint: disable-msg=E0611,W0142 __metaclass__ = type __all__ = [ 'additional_tests', ] import atexit import doctest import os #from pkg_resources import ( # resource_filename, resource_exists, resource_listdir, cleanup_resources) import unittest DOCTEST_FLAGS = ( doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_NDIFF) # def additional_tests(): # "Run the doc tests (README.txt and docs/*, if any exist)" # doctest_files = [ # os.path.abspath(resource_filename('bs4', 'README.txt'))] # if resource_exists('bs4', 'docs'): # for name in resource_listdir('bs4', 'docs'): # if name.endswith('.txt'): # doctest_files.append( # os.path.abspath( # resource_filename('bs4', 'docs/%s' % name))) # kwargs = dict(module_relative=False, optionflags=DOCTEST_FLAGS) # atexit.register(cleanup_resources) # return unittest.TestSuite(( # doctest.DocFileSuite(*doctest_files, **kwargs)))