summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test
Commit message (Collapse)AuthorAgeFilesLines
* Closes #21270 : We now override tuple methods in mock.call objects.Kushal Das2014-09-161-0/+10
|
* A few tweaks for issue16662 based on feedback from Robert Collins.Barry Warsaw2014-09-081-36/+41
|
* - Issue #16662: load_tests() is now unconditionally run when it is present inBarry Warsaw2014-09-082-17/+390
| | | | | | | a package's __init__.py. TestLoader.loadTestsFromModule() still accepts use_load_tests, but it is deprecated and ignored. A new keyword-only attribute `pattern` is added and documented. Patch given by Robert Collins, tweaked by Barry Warsaw.
* #22092: merge with 3.4.Ezio Melotti2014-08-077-5/+8
|\
| * #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.Ezio Melotti2014-08-077-5/+8
| |
* | Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-221-3/+4
| | | | | | | | fully qualified class names of Python implemented classes.
* | Suppress a couple more DeprecationWarnings in the test suite.R David Murray2014-06-111-1/+1
| |
* | Closes #21256: Printout of keyword args in deterministic order in mock calls.Kushal Das2014-06-091-0/+6
| | | | | | | | | | Printout of keyword args should be in deterministic order in a mock function call. This will help to write better doctests.
* | Issue #9815: assertRaises now tries to clear references to local variables ↵Antoine Pitrou2014-04-281-0/+31
|\ \ | |/ | | | | in the exception's traceback.
| * Issue #9815: assertRaises now tries to clear references to local variables ↵Antoine Pitrou2014-04-281-0/+31
| | | | | | | | in the exception's traceback.
* | Issue8297: module attribute lookup failures now include module name in error ↵Ethan Furman2014-04-241-5/+5
| | | | | | | | message.
* | Fix typo in test method name.Mark Dickinson2014-04-181-1/+1
| |
* | Closes Issue 21262: New method assert_not_called for Mock.Kushal Das2014-04-161-0/+9
| | | | | | | | It raises AssertionError if the mock has been called.
* | Closes Issue 21238: New keyword argument `unsafe` to Mock.Kushal Das2014-04-161-0/+11
| | | | | | | | | | It raises `AttributeError` incase of an attribute startswith assert or assret.
* | MergeMichael Foord2014-04-151-1/+18
|\ \ | |/
| * Closes issue 21239. unittest.mock.patch.stopall() did not work ↵Michael Foord2014-04-151-1/+18
| | | | | | | | deterministically when the same name was patched multiple times.
* | MergeKushal Das2014-04-151-0/+4
|\ \ | |/
| * Closes Issue 21222.Kushal Das2014-04-151-0/+4
| | | | | | | | Passing name keyword argument to mock.create_autospec now works.
* | Closes issue 17660. You no longer need to explicitly pass create=True when ↵Michael Foord2014-04-141-2/+22
|/ | | | patching builtin names.
* Issue 17826. Setting an iterable side_effect on a mock created by ↵Michael Foord2014-04-141-0/+18
| | | | create_autospec now works
* Issue 20968. unittest.mock.MagicMock now supports divisionMichael Foord2014-04-141-0/+25
|
* backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex.R David Murray2014-03-251-0/+12
| | | | | | | 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.
* Fixes Issue #20165: The unittest module no longer considers tests marked withGregory P. Smith2014-01-201-2/+2
| | | | @expectedFailure successful if they pass.
* Fix breakage in TestSuite.countTestCases() introduced by issue #11798.Antoine Pitrou2013-12-281-0/+31
|
* 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-091-0/+26
| | | | 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-231-2/+78
| |
* | 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-231-1/+23
|\ \ \ | |/ / | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv).
| * | Issue #19352: Fix unittest discovery when a module can be reached through ↵Antoine Pitrou2013-10-231-1/+23
| | | | | | | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv).
* | | Issue #18996: TestCase.assertEqual() now more cleverly shorten differingSerhiy Storchaka2013-09-231-3/+34
| | | | | | | | | | | | strings in error report.
* | | Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ↵Antoine Pitrou2013-09-141-0/+96
| | | | | | | | | | | | 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
| |/ |/|
* | Issue #11798: fix tests for regrtest -R :Andrew Svetlov2013-09-011-0/+8
| |
* | Issue #17974: Switch unittest from using getopt to using argparse.Serhiy Storchaka2013-08-292-38/+54
| |
* | Issue #11798: TestSuite now drops references to own tests after execution.Andrew Svetlov2013-08-282-5/+43
| |
* | #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-111-0/+16
|\ \ | |/ | | | | discovery.