Commit Graph

15 Commits

Author SHA1 Message Date
Michael Foord 9ef5d33084 unittest TestLoader test discovery filename matching done in a method. This makes it easier to override the matching strategy in subclasses. No behaviour change in actual implementation. 2010-06-05 10:39:42 +00:00
Michael Foord e6f5e22123 Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. 2010-05-07 23:39:38 +00:00
Benjamin Peterson 1a0ce685ab revert r80932; it breaks windows 2010-05-07 20:45:07 +00:00
Michael Foord ae4dde0858 Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. 2010-05-07 18:16:19 +00:00
Michael Foord c1bf677e28 Fix module directory finding logic for dotted paths in unittest test discovery. 2010-04-06 23:18:16 +00:00
Raymond Hettinger bb006cf26c Add tests for cmp_to_key.
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
Michael Foord 931190b4f5 Support dotted module names for test discovery paths in unittest. Issue 7780. 2010-04-03 01:15:21 +00:00
Michael Foord 49899690a8 Removing Python 2.3 compatibility code from unittest. 2010-03-22 01:41:11 +00:00
Michael Foord b1aa30f94d Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest. 2010-03-22 00:06:30 +00:00
Michael Foord 8cb253f8d6 Change order of arguments in a unittest function. 2010-03-21 00:55:58 +00:00
Michael Foord 73dbe04619 A faulty load_tests in a test module no longer halts test discovery. A placeholder test, that reports the failure, is created instead. 2010-03-21 00:53:39 +00:00
Michael Foord 0877060f86 unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799. 2010-02-06 00:22:26 +00:00
Michael Foord e91ea56b30 Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568. 2009-09-13 19:07:03 +00:00
Michael Foord 5a9719d627 unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866. 2009-09-13 17:28:35 +00:00
Benjamin Peterson d7b0eebcae split unittest.py into a package 2009-07-19 20:18:21 +00:00