summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue 10326: Fix regression to get test cases to pickle again.Raymond Hettinger2011-06-251-0/+15
|
* Fix deprecation warnings in test_unittest.Ezio Melotti2011-05-091-4/+4
|
* #11763: don't use difflib in TestCase.assertMultiLineEqual if the strings ↵Ezio Melotti2011-04-271-0/+36
| | | | are too long.
* Issue #10979. unittest stdout buffering now works for class and module fixtures.Michael Foord2011-03-171-0/+67
|
* Issue #10242: backport of more fixes to unittest.TestCase.assertItemsEqualMichael Foord2011-03-172-20/+26
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue 10242. Switching unittest.TestCase.assertItemsEqual to use a ↵Michael Foord2010-12-191-0/+5
| | | | | | collections.Counter under the hood. This fixes bugs when comparing collections of items like sets that can be sorted without raising an exception but where sorting has no meaning.
* Issue 10611. SystemExit should not cause a unittest test run to exit.Michael Foord2010-12-191-0/+52
|
* Improvement to fix for issue 9926 to allow TestResult to be reused.Michael Foord2010-12-191-1/+5
|
* Merged revisions 87377 via svnmerge fromEzio Melotti2010-12-181-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87377 | ezio.melotti | 2010-12-18 18:31:58 +0100 (Sat, 18 Dec 2010) | 1 line Use lowercase true/false in assertTrue/assertFalse messages. ........
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-212-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 86101 via svnmerge fromMichael Foord2010-11-011-0/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86101 | michael.foord | 2010-11-01 21:09:03 +0000 (Mon, 01 Nov 2010) | 1 line Fix issue 9926. TestSuite subclasses that override __call__ are called correctly. ........
* Fix error message for comparing single line strings in ↵Michael Foord2010-07-101-0/+15
| | | | | | unittest.TestCase.assertEqual. Issue 9174
* Fix issue with nested test suites debug method and module setups. (unittest)Michael Foord2010-06-101-1/+3
|
* Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus ↵Michael Foord2010-06-082-0/+87
| | | | class and module teardowns are not run by unittest.TestSuite.debug().
* Tests for issue 8302, skipped test in a setUpClass or a setUpModule are ↵Michael Foord2010-06-052-2/+45
| | | | reported as skips rather than errors.
* Tests for unittest.TestCase.maxDiff.Michael Foord2010-06-051-0/+39
|
* Fix unittest tests after previous commit.Michael Foord2010-06-051-3/+6
|
* Removed the new max_diff argument to assertSequenceEqual. All ↵Michael Foord2010-06-051-4/+21
| | | | 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.
* Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual.Michael Foord2010-06-051-0/+19
|
* Adding a test for unittest.BaseTestSuite.Michael Foord2010-05-091-0/+45
|
* unittest: issue 8301. Adding functions to test suites no longer crashes.Michael Foord2010-05-081-0/+9
|
* Issue 7780. Adding a test for unittest test discovery from a dotted path.Michael Foord2010-05-081-0/+17
|
* Issue 8547 - detecting and reporting that modules have been imported from ↵Michael Foord2010-05-071-2/+44
| | | | the wrong location under test discovery.
* revert r80932; it breaks windowsBenjamin Peterson2010-05-071-39/+0
|
* Issue 8547 - detecting and reporting that modules have been imported from ↵Michael Foord2010-05-071-0/+39
| | | | the wrong location under test discovery.
* Adding tests for unittest command line handling of buffer, catchbreak and ↵Michael Foord2010-05-072-0/+206
| | | | failfast.
* Adding a test for unittest test discovery with dotted path name.Michael Foord2010-05-071-0/+17
|
* Fix unittest tests to not abuse traceback.format_exceptionMichael Foord2010-05-021-1/+14
|
* Adding unittest.removeHandler function / decorator for removing the ↵Michael Foord2010-04-251-0/+21
| | | | signal.SIGINT signal handler. With tests and docs.
* Issue #8263: On freebsd6 the unittest 'break' test stops regrtest; skip it.R. David Murray2010-04-171-0/+2
| | | | | This is presumably related to issue 3864, and appears to be due to a platform bug on freebsd6.
* unittest.result.TestResult does not create its buffers until they're used. ↵Michael Foord2010-04-071-3/+5
| | | | It uses StringIO not cStringIO. Issue 8333.
* Another attempt at a fix for unittest.test.test_result for windows line endingsMichael Foord2010-04-031-5/+4
|
* Cross platform unittest.TestResult newline handling when buffering stdout / ↵Michael Foord2010-04-031-4/+5
| | | | stderr.
* Support dotted module names for test discovery paths in unittest. Issue 7780.Michael Foord2010-04-031-2/+9
|
* Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-0/+2
| | | | | | | | | | | | | | os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.
* Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatchesMichael Foord2010-04-021-0/+10
|
* unittest tests no longer replace the sys.stdout put in place by regrtestMichael Foord2010-04-021-2/+2
|
* TestResult stores original sys.stdout and tests no longer use sys.__stdout__ ↵Michael Foord2010-04-021-17/+14
| | | | (etc) in tests for unittest -b command line option
* Addition of -b command line option to unittest for buffering stdout and ↵Michael Foord2010-04-022-5/+135
| | | | stderr during test runs.
* Backport of weakref.WeakSet and tests from Python 3.Michael Foord2010-03-291-0/+1
|
* Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals ↵Michael Foord2010-03-271-0/+24
| | | | | | and assertNotAlmostEquals This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
* Rename the unittest test_suite function to not clash with a test module name ↵Michael Foord2010-03-271-2/+2
| | | | (unittest.test.test_suite is now unambiguous).
* A fix for running unittest tests on platforms without the audioop module ↵Michael Foord2010-03-272-14/+7
| | | | (e.g. jython and IronPython)
* Addition of -c command line option to unittest, to handle ctrl-c during a ↵Michael Foord2010-03-262-1/+229
| | | | test run more elegantly
* Move a support TestCase out of the main namespace in unittest.test.test_suiteMichael Foord2010-03-261-7/+7
|
* Remove incorrect docstring in unittest.testMichael Foord2010-03-261-14/+0
|
* Turn unittest tests into a packageMichael Foord2010-03-2513-0/+4511