summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9815: assertRaises now tries to clear references to local variables ↵Antoine Pitrou2014-04-282-0/+34
| | | | in the exception's traceback.
* Closes issue 21239. unittest.mock.patch.stopall() did not work ↵Michael Foord2014-04-152-6/+28
| | | | deterministically when the same name was patched multiple times.
* Closes Issue 21222.Kushal Das2014-04-152-0/+6
| | | | Passing name keyword argument to mock.create_autospec now works.
* Issue 17826. Setting an iterable side_effect on a mock created by ↵Michael Foord2014-04-142-2/+31
| | | | create_autospec now works
* Issue 20968. unittest.mock.MagicMock now supports divisionMichael Foord2014-04-142-1/+28
|
* backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex.R David Murray2014-03-252-1/+13
| | | | | | | Previously a non-string, non-regex second argument and missing callable argument could cause the test to appear to always pass. Initial patch by Kamilla Holanda.
* Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-3/+16
| | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* Fixes Issue #20165: The unittest module no longer considers tests marked withGregory P. Smith2014-01-202-5/+10
| | | | @expectedFailure successful if they pass.
* Fix breakage in TestSuite.countTestCases() introduced by issue #11798.Antoine Pitrou2013-12-282-4/+43
|
* Remove commented out debugging code (remnants of issue #18996).Serhiy Storchaka2013-12-101-2/+0
|
* Close #19880: Fix a reference leak in unittest.TestCase. Explicitly breakVictor Stinner2013-12-092-1/+39
| | | | reference cycles between frames and the _Outcome instance.
* MergeMichael Foord2013-11-231-15/+2
|\
| * Remove shadowed testMichael Foord2013-09-151-15/+2
| |
* | Issue 17457: extend test discovery to support namespace packagesMichael Foord2013-11-232-11/+129
| |
* | Issue #19594: Use specific asserts in unittest tests.Serhiy Storchaka2013-11-167-28/+28
|\ \
| * | Issue #19594: Use specific asserts in unittest tests.Serhiy Storchaka2013-11-167-28/+28
| | |
* | | Issue #19352: Fix unittest discovery when a module can be reached through ↵Antoine Pitrou2013-10-232-3/+25
|\ \ \ | |/ / | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv).
| * | Issue #19352: Fix unittest discovery when a module can be reached through ↵Antoine Pitrou2013-10-232-3/+25
| | | | | | | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv).
* | | Issue #18996: TestCase.assertEqual() now more cleverly shorten differingSerhiy Storchaka2013-09-233-16/+78
| | | | | | | | | | | | strings in error report.
* | | Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ↵Antoine Pitrou2013-09-142-6/+199
| | | | | | | | | | | | ensure that a block of code emits a message using the logging module.
* | | Adjust commentAntoine Pitrou2013-09-131-1/+1
| | |
* | | Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocationAntoine Pitrou2013-09-131-0/+18
| | |
* | | Issue #19013: add a __main__ to unittest.test to ease CLI invocationAntoine Pitrou2013-09-131-0/+18
| | |
* | | Issue #19013: add unittest.main() epilogs to unittest.mock's own test modulesAntoine Pitrou2013-09-133-2/+4
| | |
* | | Issue #19013: add unittest.main() epilogs to unittest's own test modulesAntoine Pitrou2013-09-138-0/+29
| | |
* | | Merge docstring typo fix from 3.3Mark Dickinson2013-09-091-1/+1
|\ \ \ | |/ / | | / | |/ |/|
| * Docstring typo fix: Arithmentic -> Arithmetic.Mark Dickinson2013-09-091-1/+1
| |
* | Issue #11798: fix tests for regrtest -R :Andrew Svetlov2013-09-012-2/+14
| |
* | Back out 868ad6fa8e68 - it left all the buildbots failing.Tim Peters2013-09-011-1/+0
| | | | | | | | | | | | Unclear to me why it was pushed to begin with. See issue 11798. Perhaps it's because regrtest with -R was failing? Fine, but that's better than regrtest _always_ failing ;-)
* | Temporary disable tests cleanup (issue 11798).Andrew Svetlov2013-08-311-0/+1
| |
* | Issue #17974: Switch unittest from using getopt to using argparse.Serhiy Storchaka2013-08-294-177/+168
| |
* | Issue #11798: TestSuite now drops references to own tests after execution.Andrew Svetlov2013-08-283-7/+56
| |
* | #18741: merge with 3.3.Ezio Melotti2013-08-173-3/+3
|\ \ | |/
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-173-3/+3
| |
* | #18663: merge with 3.3.Ezio Melotti2013-08-111-0/+4
|\ \ | |/
| * #18663: document that assertAlmostEqual also works when the values are equal ↵Ezio Melotti2013-08-111-0/+4
| | | | | | | | and add tests.
* | clean the environment from pre-existing PYTHONWARNINGS for test_warningsŁukasz Langa2013-04-231-0/+12
|\ \ | |/
| * clean the environment from pre-existing PYTHONWARNINGS for test_warningsŁukasz Langa2013-04-231-0/+12
| |
* | Merge #14971: Use class method name, not function.__name__, during unittest ↵R David Murray2013-04-112-1/+17
|\ \ | |/ | | | | discovery.
| * #14971: Use class method name, not function.__name__, during unittest discovery.R David Murray2013-04-112-1/+17
| |
* | Process DEFAULT values in mock side_effect that returns iterator.Andrew Svetlov2013-04-072-0/+6
|\ \ | |/ | | | | Patch by Michael Ford.
| * Process DEFAULT values in mock side_effect that returns iterator.Andrew Svetlov2013-04-072-0/+6
| | | | | | | | Patch by Michael Ford.
* | Fix bug in TestResult.addSubTest()Antoine Pitrou2013-03-292-1/+35
| |
* | #8906: merge with 3.3.Ezio Melotti2013-03-291-12/+11
|\ \ | |/
| * #8906: document failureException, longMessage, and maxDiff in the class ↵Ezio Melotti2013-03-291-12/+11
| | | | | | | | docstring. Patch by Boris Feld.
* | #17329: merge with 3.3.Ezio Melotti2013-03-271-1/+1
|\ \ | |/
| * #17329: merge with 3.2.Ezio Melotti2013-03-271-1/+1
| |\
| | * #17329: document unittest.SkipTest. Initial patch by Zachary Ware.Ezio Melotti2013-03-271-1/+1
| | |
* | | #17504: merge with 3.3.Ezio Melotti2013-03-241-3/+0
|\ \ \ | |/ /
| * | #17504: remove duplicated sentence. Patch by Radu Voicilas.Ezio Melotti2013-03-241-3/+0
| | |