summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
* Updating documentation and adding docstrings to ↵Michael Foord2010-05-081-0/+2
| | | | unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038.
* 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-072-3/+58
| | | | the wrong location under test discovery.
* revert r80932; it breaks windowsBenjamin Peterson2010-05-072-53/+1
|
* Issue 8547 - detecting and reporting that modules have been imported from ↵Michael Foord2010-05-072-1/+53
| | | | 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-072-4/+21
|
* 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-253-2/+42
| | | | 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-072-6/+11
| | | | It uses StringIO not cStringIO. Issue 8333.
* Fix module directory finding logic for dotted paths in unittest test discovery.Michael Foord2010-04-061-1/+13
|
* Add tests for cmp_to_key.Raymond Hettinger2010-04-041-11/+1
| | | | | | Adopt PEP 8 compliant function name. Factor-out existing uses cmp_to_key. Update documentation to use internal pointers instead of external resource.
* Minor tweak to unittest command line usage messageMichael Foord2010-04-031-1/+2
|
* Adding -b command line option to the unittest usage message.Michael Foord2010-04-031-6/+8
|
* 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-032-15/+15
| | | | stderr.
* Support dotted module names for test discovery paths in unittest. Issue 7780.Michael Foord2010-04-032-6/+32
|
* 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-022-0/+22
|
* unittest tests no longer replace the sys.stdout put in place by regrtestMichael Foord2010-04-022-8/+4
|
* TestResult stores original sys.stdout and tests no longer use sys.__stdout__ ↵Michael Foord2010-04-022-19/+18
| | | | (etc) in tests for unittest -b command line option
* Addition of -b command line option to unittest for buffering stdout and ↵Michael Foord2010-04-025-14/+217
| | | | 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-272-13/+69
| | | | | | 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-266-16/+319
| | | | 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
|
* Correct usage message displayed for python -m unittest -hMichael Foord2010-03-223-10/+4
|
* expected failure should not trigger failfast behavior in unittest.Michael Foord2010-03-222-2/+1
|
* Removing Python 2.3 compatibility code from unittest.Michael Foord2010-03-222-7/+2
|
* -f/--failfast command line option for unittest. Issue 8074. Documentation ↵Michael Foord2010-03-223-6/+32
| | | | still needed. Plus minor change to test_unittest to allow it to be run with python -m test.unittest
* Issue 7815. __unittest in module globals trims frames from reported ↵Michael Foord2010-03-229-5/+22
| | | | stacktraces in unittest.
* Silence more py3k warnings in unittest.case.Florent Xicluna2010-03-211-2/+2
|
* Change order of arguments in a unittest function.Michael Foord2010-03-211-4/+4
|
* A faulty load_tests in a test module no longer halts test discovery. A ↵Michael Foord2010-03-211-7/+21
| | | | placeholder test, that reports the failure, is created instead.
* Issue 7832: renaming unittest.TestCase.assertSameElements to ↵Michael Foord2010-03-202-24/+67
| | | | assertItemsEqual and changing behaviour
* Remove accidental print statement from last commit.Michael Foord2010-03-071-1/+0
|
* Fix accidental name rebinding in unittest py3k warning filtering.Michael Foord2010-03-071-2/+3
|
* Addition of setUpClass and setUpModule shared fixtures to unittest.Michael Foord2010-03-074-10/+205
|
* Fix for potentials errors in constructing unittest failure messages. Plus ↵Michael Foord2010-03-071-13/+23
| | | | skipped test methods no longer run setUp and tearDown (Issue 8059)
* Fix some py3k warnings in the standard library.Florent Xicluna2010-03-071-20/+17
|
* unittest.TestResult can now be used with the TextTestRunner. TextTestRunner ↵Michael Foord2010-02-232-6/+16
| | | | compatible with old TestResult objects.
* Support for old TestResult object (unittest) with warnings when using ↵Michael Foord2010-02-222-7/+28
| | | | unsupported features.
* Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode ↵Michael Foord2010-02-181-3/+4
| | | | issues when constructing failure messages. Issue 7956
* unittest.TestCase uses safe_repr for producing failure messages. Partial fix ↵Michael Foord2010-02-182-34/+52
| | | | for issue 7956
* Adding TextTestResult to unittest.__all__Michael Foord2010-02-111-1/+2
|