Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | test that TestCase doesn't get cycles | Benjamin Peterson | 2011-07-14 | 1 | -0/+9 | |
| | | ||||||
* | | Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and ↵ | Ezio Melotti | 2011-05-06 | 1 | -0/+73 | |
| | | | | | | | | assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert. | |||||
* | | #11763: merge with 3.2. | Ezio Melotti | 2011-04-27 | 1 | -0/+36 | |
|\ \ | |/ | ||||||
| * | #11763: merge with 3.1. | Ezio Melotti | 2011-04-27 | 1 | -0/+36 | |
| | | ||||||
* | | #11282: add back the fail* methods and assertDictContainsSubset. | Ezio Melotti | 2011-04-03 | 4 | -4/+75 | |
| | | ||||||
* | | #11282: merge with 3.2. | Ezio Melotti | 2011-04-03 | 1 | -4/+2 | |
|\ \ | |/ | ||||||
| * | #11282: the fail* methods will stay around a few more versions. | Ezio Melotti | 2011-04-03 | 1 | -4/+2 | |
| | | ||||||
* | | Merge with 3.2. | Ezio Melotti | 2011-03-20 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Save a copy of sys.warnoptions in test_program. | Ezio Melotti | 2011-03-20 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #3080: Use repr() to format the module name on error | Victor Stinner | 2011-03-14 | 1 | -2/+2 | |
| | | ||||||
* | | Closes issue 10979. unittest buffering now works with class and module setup ↵ | Michael Foord | 2011-03-17 | 1 | -0/+67 | |
|\ \ | |/ | | | | | and teardown | |||||
| * | Issue #10979. unittest stdout buffering now works with class and module ↵ | Michael Foord | 2011-03-17 | 1 | -0/+67 | |
| | | | | | | | | setup and teardown. | |||||
* | | Closes issue 11407. TestCase.run returns the result object used or created | Michael Foord | 2011-03-14 | 1 | -4/+39 | |
| | | ||||||
* | | Remove unittest methods scheduled for removal in 3.3 -- makes the unittest ↵ | Georg Brandl | 2011-02-20 | 4 | -74/+4 | |
|/ | | | | test suite pass again. | |||||
* | fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset() | Victor Stinner | 2011-01-03 | 2 | -24/+30 | |
| | ||||||
* | Enable unittest.TestCase to be instantiated without providing a method name. | Michael Foord | 2011-01-03 | 1 | -0/+10 | |
| | | | | Changed unittestgui to show number of discovered tests in the status bar. | |||||
* | Issue 10786: unittest.TextTestRunner default stream no longer bound at ↵ | Michael Foord | 2010-12-30 | 1 | -0/+17 | |
| | | | | import time | |||||
* | Add direct tests for the util functions. | Raymond Hettinger | 2010-12-24 | 1 | -1/+13 | |
| | ||||||
* | Improve diff for assertCountEqual() to actually show the differing counts. | Raymond Hettinger | 2010-12-24 | 1 | -6/+0 | |
| | | | | | | | | | | | | | | | | | | New output looks like this: Traceback (most recent call last): File "test.py", line 5, in test_ce self.assertCountEqual('abracadabra xx', 'simsalabim xx') AssertionError: Element counts were not equal: Expected 5, got 2: 'a' Expected 2, got 1: 'b' Expected 0, got 2: 'i' Expected 0, got 2: 'm' Expected 0, got 1: 'l' Expected 0, got 2: 's' Expected 1, got 0: 'c' Expected 1, got 0: 'd' Expected 2, got 0: 'r' | |||||
* | Add test for r87454. | Raymond Hettinger | 2010-12-24 | 1 | -0/+3 | |
| | ||||||
* | Deprecate assertDictContainsSubset() | Raymond Hettinger | 2010-12-21 | 1 | -1/+2 | |
| | ||||||
* | Improvement to fix for issue 9926 to allow TestResult to be reused. | Michael Foord | 2010-12-19 | 1 | -1/+6 | |
| | ||||||
* | Fix minor issue in implementation of issue 10470. | Michael Foord | 2010-12-19 | 2 | -0/+14 | |
| | ||||||
* | Issue 10611. Issue 9857. Improve the way exception handling, including test ↵ | Michael Foord | 2010-12-19 | 3 | -23/+99 | |
| | | | | skipping, is done inside TestCase.run | |||||
* | Use lowercase true/false in assertTrue/assertFalse messages. | Ezio Melotti | 2010-12-18 | 1 | -4/+4 | |
| | ||||||
* | #10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for ↵ | Ezio Melotti | 2010-12-10 | 1 | -4/+4 | |
| | | | | noticing it. | |||||
* | Correct comment in unittest test | Michael Foord | 2010-12-04 | 1 | -1/+1 | |
| | ||||||
* | Issue 10620: Specifying test modules by path instead of module name to ↵ | Michael Foord | 2010-12-04 | 1 | -0/+79 | |
| | | | | 'python -m unittest' | |||||
* | Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵ | Michael Foord | 2010-12-03 | 1 | -1/+1 | |
| | | | | failure messages by default | |||||
* | #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵ | Ezio Melotti | 2010-12-01 | 5 | -45/+47 | |
| | | | | assertRaisesRegex. | |||||
* | Fix test failure in debug builds and add NEWS entry for r86908 | Ezio Melotti | 2010-12-01 | 1 | -3/+3 | |
| | ||||||
* | #10535: Enable silenced warnings in unittest by default | Ezio Melotti | 2010-12-01 | 4 | -3/+160 | |
| | ||||||
* | Issue 10242: unittest.assertItemsEqual makes too many assumptions. | Raymond Hettinger | 2010-11-27 | 2 | -21/+28 | |
| | ||||||
* | #9424: add a DeprecationWarning for assertEquals, assertNotEquals, ↵ | Ezio Melotti | 2010-11-22 | 1 | -19/+23 | |
| | | | | assertAlmostEquals, assertNotAlmostEquals, and assert_ | |||||
* | Improve test for 'python -m unittest' launching test discovery | Michael Foord | 2010-11-22 | 1 | -5/+4 | |
| | ||||||
* | Issue 10470: 'python -m unittest' launches test discovery by default.(If ↵ | Michael Foord | 2010-11-21 | 1 | -13/+38 | |
| | | | | 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 Melotti | 2010-11-20 | 2 | -6/+6 | |
| | ||||||
* | Issue 10326: further extend test for unpickling to ensure type lookup ↵ | Michael Foord | 2010-11-20 | 1 | -0/+4 | |
| | | | | mechanism works after unpickling | |||||
* | Issue 10326: extend test for pickling of TestCase instances to ensure they ↵ | Michael Foord | 2010-11-20 | 1 | -0/+2 | |
| | | | | can be unpickled too | |||||
* | Issue 10326: TestCase instances can now be pickled (they store names of ↵ | Michael Foord | 2010-11-20 | 1 | -0/+12 | |
| | | | | instance methods instead of references to the instance methods themselves). | |||||
* | Fix issue 9926. TestSuite subclasses that override __call__ are called ↵ | Michael Foord | 2010-11-01 | 1 | -0/+14 | |
| | | | | correctly. | |||||
* | Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest | Antoine Pitrou | 2010-09-06 | 1 | -0/+134 | |
| | | | | | 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 Foord | 2010-07-10 | 1 | -0/+15 | |
| | | | | | | unittest.TestCase.assertEqual. Issue 9174. | |||||
* | Merged revisions 81878 via svnmerge from | Michael Foord | 2010-06-10 | 1 | -1/+3 | |
| | | | | | | | | | | 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 81853 via svnmerge from | Michael Foord | 2010-06-10 | 2 | -0/+87 | |
| | | | | | | | | | | 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 81764 via svnmerge from | Michael Foord | 2010-06-05 | 2 | -2/+49 | |
| | | | | | | | | | | 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 from | Michael Foord | 2010-06-05 | 1 | -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 from | Michael Foord | 2010-06-05 | 1 | -3/+6 | |
| | | | | | | | | | | 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 81739 via svnmerge from | Michael Foord | 2010-06-05 | 1 | -4/+22 | |
| | | | | | | | | | | 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 Foord | 2010-06-05 | 1 | -1/+1 | |
| |