Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/bs4/tests/test_docs.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 1 "Test harness for doctests." | |
| 2 | |
| 3 # pylint: disable-msg=E0611,W0142 | |
| 4 | |
| 5 __metaclass__ = type | |
| 6 __all__ = [ | |
| 7 'additional_tests', | |
| 8 ] | |
| 9 | |
| 10 import atexit | |
| 11 import doctest | |
| 12 import os | |
| 13 #from pkg_resources import ( | |
| 14 # resource_filename, resource_exists, resource_listdir, cleanup_resources) | |
| 15 import unittest | |
| 16 | |
| 17 DOCTEST_FLAGS = ( | |
| 18 doctest.ELLIPSIS | | |
| 19 doctest.NORMALIZE_WHITESPACE | | |
| 20 doctest.REPORT_NDIFF) | |
| 21 | |
| 22 | |
| 23 # def additional_tests(): | |
| 24 # "Run the doc tests (README.txt and docs/*, if any exist)" | |
| 25 # doctest_files = [ | |
| 26 # os.path.abspath(resource_filename('bs4', 'README.txt'))] | |
| 27 # if resource_exists('bs4', 'docs'): | |
| 28 # for name in resource_listdir('bs4', 'docs'): | |
| 29 # if name.endswith('.txt'): | |
| 30 # doctest_files.append( | |
| 31 # os.path.abspath( | |
| 32 # resource_filename('bs4', 'docs/%s' % name))) | |
| 33 # kwargs = dict(module_relative=False, optionflags=DOCTEST_FLAGS) | |
| 34 # atexit.register(cleanup_resources) | |
| 35 # return unittest.TestSuite(( | |
| 36 # doctest.DocFileSuite(*doctest_files, **kwargs))) |
