summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Remove deprecation on assert_. It is used too frequently.Michael Foord2010-02-101-1/+1
|
* Issue 7893 and Issue 7588Michael Foord2010-02-104-27/+32
|
* Make assertMultiLineEqual the default for comparing unicode strings.Michael Foord2010-02-081-0/+1
|
* Fix exc_value -> exception in docstringEzio Melotti2010-02-081-1/+1
|
* assertRaises as context manager now allows you to access exception as documentedMichael Foord2010-02-071-1/+1
|
* Rename "exc_value" attribute on assertRaises context manager to "exception".Georg Brandl2010-02-071-2/+2
|
* Use "regexp" consistently.Georg Brandl2010-02-071-8/+8
|
* unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.Michael Foord2010-02-061-1/+2
|
* Correction to docstring correction.Michael Foord2010-02-051-1/+1
|
* Improving docstrings in unittest.TestCaseMichael Foord2010-02-051-5/+15
|
* Fix typo in assertSequenceEqual docstring.R. David Murray2010-01-291-1/+1
|
* Change error report when the object passed to suite.addTest is notR. David Murray2010-01-281-1/+1
| | | | callable to include the repr of the invalid object.
* Issue #7092: Fix the DeprecationWarnings emitted by the standard libraryAntoine Pitrou2010-01-041-3/+9
| | | | when using the -3 flag. Patch by Florent Xicluna.
* More yearly updates.Georg Brandl2010-01-011-1/+1
|
* now that deepcopy can handle instance methods, this hack can be removed #7409Benjamin Peterson2009-11-291-13/+2
| | | | Thanks Robert Collins
* Backport micro-fix from the py3k svnmergeAntoine Pitrou2009-11-101-1/+1
|
* Issue #7197: Allow unittest.TextTestRunner objects to be pickled andAntoine Pitrou2009-11-101-0/+2
| | | | | | | unpickled. This fixes crashes under Windows when trying to run test_multiprocessing in verbose mode. Additionally, Test_TextTestRunner hadn't been enabled in test_unittest.
* #7031: Add TestCase.assertIsInstance and negated method.Georg Brandl2009-10-011-0/+13
|