summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
...
* Issue 10611. Issue 9857. Improve the way exception handling, including test ↵Michael Foord2010-12-194-73/+177
| | | | skipping, is done inside TestCase.run
* #10573: use actual/expected consistently in unittest methods. The order of ↵Ezio Melotti2010-12-181-13/+13
| | | | the args of assertCountEqual is also changed.
* Use lowercase true/false in assertTrue/assertFalse messages.Ezio Melotti2010-12-182-8/+8
|
* assert that the regex given to assertRegex is non-empty.Gregory P. Smith2010-12-161-0/+1
|
* #10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for ↵Ezio Melotti2010-12-102-5/+5
| | | | noticing it.
* Correct comment in unittest testMichael Foord2010-12-041-1/+1
|
* Issue 10620: Specifying test modules by path instead of module name to ↵Michael Foord2010-12-042-1/+97
| | | | 'python -m unittest'
* Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵Michael Foord2010-12-032-2/+2
| | | | failure messages by default
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-016-95/+101
| | | | assertRaisesRegex.
* Fix test failure in debug builds and add NEWS entry for r86908Ezio Melotti2010-12-011-3/+3
|
* #10535: Enable silenced warnings in unittest by defaultEzio Melotti2010-12-016-18/+203
|
* Do not add an obsolete unittest name to Py3.2.Raymond Hettinger2010-11-291-3/+0
|
* Issue 10242: unittest.assertItemsEqual makes too many assumptions.Raymond Hettinger2010-11-273-32/+44
|
* #9424: add a DeprecationWarning for assertEquals, assertNotEquals, ↵Ezio Melotti2010-11-222-37/+31
| | | | assertAlmostEquals, assertNotAlmostEquals, and assert_
* Improve test for 'python -m unittest' launching test discoveryMichael Foord2010-11-221-5/+4
|
* Issue 10470: 'python -m unittest' launches test discovery by default.(If ↵Michael Foord2010-11-212-14/+40
| | | | you need to pass options to test discovery the discover subcommand must still be specified explicitly.)
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-203-12/+10
|
* Improve unittest.TestLoader.discover docstringMichael Foord2010-11-201-3/+3
|
* Issue 10326: further extend test for unpickling to ensure type lookup ↵Michael Foord2010-11-201-0/+4
| | | | mechanism works after unpickling
* Issue 10326: extend test for pickling of TestCase instances to ensure they ↵Michael Foord2010-11-201-0/+2
| | | | can be unpickled too
* Issue 10326: TestCase instances can now be pickled (they store names of ↵Michael Foord2010-11-202-7/+40
| | | | instance methods instead of references to the instance methods themselves).
* reduce try block compassBenjamin Peterson2010-11-181-1/+2
|
* Remove the keyword only restriction for places and delta args in ↵Michael Foord2010-11-021-2/+2
| | | | unittest.TestCase.assert[Not]AlmostEqual
* Fix issue 9926. TestSuite subclasses that override __call__ are called ↵Michael Foord2010-11-013-19/+32
| | | | correctly.
* Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittestAntoine Pitrou2010-09-062-4/+244
| | | | | test cases now also have assertWarns and assertWarnsRegexp methods to check that a given warning type was triggered by the code under test.
* Fix error message for comparing single line strings in ↵Michael Foord2010-07-102-3/+23
| | | | | | unittest.TestCase.assertEqual. Issue 9174.
* Merged revisions 81878 via svnmerge fromMichael Foord2010-06-102-2/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81878 | michael.foord | 2010-06-10 21:40:21 +0100 (Thu, 10 Jun 2010) | 2 lines Fix issue with nested test suites debug method and module setups. (unittest) ........
* Merged revisions 81859 via svnmerge fromMichael Foord2010-06-101-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81859 | michael.foord | 2010-06-09 13:29:56 +0100 (Wed, 09 Jun 2010) | 1 line Typo correction. ........
* Merged revisions 81853 via svnmerge fromMichael Foord2010-06-104-2/+116
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81853 | michael.foord | 2010-06-08 23:44:52 +0100 (Tue, 08 Jun 2010) | 1 line Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class and module teardowns are not run by unittest.TestSuite.debug(). ........
* Merged revisions 81770 via svnmerge fromMichael Foord2010-06-051-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81770 | michael.foord | 2010-06-06 00:58:40 +0100 (Sun, 06 Jun 2010) | 1 line Code formatting change. ........
* Merged revisions 81764 via svnmerge fromMichael Foord2010-06-053-22/+72
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81764 | michael.foord | 2010-06-05 21:59:00 +0100 (Sat, 05 Jun 2010) | 1 line Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors. ........
* Merged revisions 81763 via svnmerge fromMichael Foord2010-06-051-0/+39
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81763 | michael.foord | 2010-06-05 21:33:43 +0100 (Sat, 05 Jun 2010) | 1 line Tests for unittest.TestCase.maxDiff. ........
* Merged revisions 81753 via svnmerge fromMichael Foord2010-06-052-4/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81753 | michael.foord | 2010-06-05 14:48:27 +0100 (Sat, 05 Jun 2010) | 1 line Fix unittest tests after previous commit. ........
* Merged revisions 81752 via svnmerge fromMichael Foord2010-06-051-1/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81752 | michael.foord | 2010-06-05 14:38:16 +0100 (Sat, 05 Jun 2010) | 1 line unittest.TestCase assertion methods inform you when they have omitted an over long diff on failure. Issue 8351. ........
* Merged revisions 81747 via svnmerge fromMichael Foord2010-06-052-6/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81747 | michael.foord | 2010-06-05 13:58:39 +0100 (Sat, 05 Jun 2010) | 1 line unittest.TestCase.assertDictEqual and assertMultilineEqual provide better default failure messages in the event of long diffs. ........
* Merged revisions 81739 via svnmerge fromMichael Foord2010-06-052-14/+40
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81739 | michael.foord | 2010-06-05 13:10:52 +0100 (Sat, 05 Jun 2010) | 1 line Removed the new max_diff argument to assertSequenceEqual. All unittest.TestCase assert methods that use difflib to produce failure messages now truncate overly long messages. New class attribute unittest.TestCase.maxDiff to configure this if necessary. Issue 8351. ........
* Test fix to use floor division. Correction from merge in previous commit.Michael Foord2010-06-051-1/+1
|
* Merged revisions 81728 via svnmerge fromMichael Foord2010-06-052-3/+29
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81728 | michael.foord | 2010-06-05 12:23:51 +0100 (Sat, 05 Jun 2010) | 1 line Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual. ........
* Merged revisions 81724 via svnmerge fromMichael Foord2010-06-051-20/+24
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81724 | michael.foord | 2010-06-05 11:39:42 +0100 (Sat, 05 Jun 2010) | 1 line 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. ........
* remove now useless __ne__Benjamin Peterson2010-05-111-3/+0
|
* Merged revisions 81055 via svnmerge fromMichael Foord2010-05-102-6/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81055 | michael.foord | 2010-05-10 21:21:16 +0100 (Mon, 10 May 2010) | 1 line Improving help message for python -m unittest. Issue 8303. ........
* Merged revisions 81022 via svnmerge fromMichael Foord2010-05-091-0/+45
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81022 | michael.foord | 2010-05-09 11:58:25 +0200 (Sun, 09 May 2010) | 1 line Adding a test for unittest.BaseTestSuite. ........
* Merged revisions 80997 via svnmerge fromMichael Foord2010-05-082-1/+19
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80997 | michael.foord | 2010-05-08 19:06:25 +0200 (Sat, 08 May 2010) | 1 line unittest: issue 8301. Adding functions to test suites no longer crashes. ........
* Merged revisions 80990 via svnmerge fromMichael Foord2010-05-081-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80990 | michael.foord | 2010-05-08 18:40:52 +0200 (Sat, 08 May 2010) | 1 line Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038. ........
* Merged revisions 80974 via svnmerge fromMichael Foord2010-05-081-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80974 | michael.foord | 2010-05-08 15:20:07 +0200 (Sat, 08 May 2010) | 1 line Issue 7780. Adding a test for unittest test discovery from a dotted path. ........
* Merged revisions 80946 via svnmerge fromMichael Foord2010-05-072-3/+58
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80946 | michael.foord | 2010-05-08 01:39:38 +0200 (Sat, 08 May 2010) | 1 line Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. ........
* Merged revisions 80939 via svnmerge fromBenjamin Peterson2010-05-072-53/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80939 | benjamin.peterson | 2010-05-07 15:45:07 -0500 (Fri, 07 May 2010) | 1 line revert r80932; it breaks windows ........
* Merged revisions 80932 via svnmerge fromMichael Foord2010-05-072-1/+53
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80932 | michael.foord | 2010-05-07 20:16:19 +0200 (Fri, 07 May 2010) | 1 line Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. ........
* Merged revisions 80920 via svnmerge fromMichael Foord2010-05-072-0/+210
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80920 | michael.foord | 2010-05-07 17:52:05 +0200 (Fri, 07 May 2010) | 1 line Adding tests for unittest command line handling of buffer, catchbreak and failfast. ........
* Merged revisions 80918 via svnmerge fromMichael Foord2010-05-072-4/+21
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80918 | michael.foord | 2010-05-07 17:34:08 +0200 (Fri, 07 May 2010) | 1 line Adding a test for unittest test discovery with dotted path name. ........