equal
deleted
inserted
replaced
27 |
27 |
28 |
28 |
29 CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) |
29 CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) |
30 |
30 |
31 |
31 |
32 def doc_suite(test_dir, setUp=None, tearDown=None, globs=None): |
32 def doc_suite(test_dir, setUp=None, tearDown=None, globs=None): # pylint: disable=invalid-name |
33 """Returns a test suite, based on doctests found in /doctest.""" |
33 """Returns a test suite, based on doctests found in /doctest.""" |
34 suite = [] |
34 suite = [] |
35 if globs is None: |
35 if globs is None: |
36 globs = globals() |
36 globs = globals() |
37 |
37 |
59 return doc_suite(CURRENT_DIR) |
59 return doc_suite(CURRENT_DIR) |
60 |
60 |
61 |
61 |
62 if __name__ == '__main__': |
62 if __name__ == '__main__': |
63 unittest.main(defaultTest='test_suite') |
63 unittest.main(defaultTest='test_suite') |
64 |
|