Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Issue #22894: TestCase.subTest() would cause the test suite to be stopped ↵ | Antoine Pitrou | 2014-11-23 | 2 | -1/+30 | |
| | | | | | | | | when in failfast mode, even in the absence of failures. | |||||
* | | Fix regression in issue 22457 fix. | Robert Collins | 2014-11-04 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | | | | | When used in the real world it can under some situations trigger " assert not _relpath.startswith('..'), "Path must be within the project" AssertionError: Path must be within the project " Because _get_name_from_path was not expecting to be called with the top level directory. | |||||
* | | Close #22457: Honour load_tests in the start_dir of discovery. | Robert Collins | 2014-11-04 | 4 | -58/+160 | |
| | | | | | | | | | | | | We were not honouring load_tests in a package/__init__.py when that was the start_dir parameter, though we do when it is a child package. The fix required a little care since it introduces the possibility of infinite recursion. | |||||
* | | Close #7559: ImportError when loading a test now shown as ImportError. | Robert Collins | 2014-10-29 | 2 | -105/+181 | |
| | | | | | | | | | | | | | | Previously the ImportError was only shown if the top level containing package failed to import, with other ImportErrors showing up as AttributeError - hiding the real cause. As part of this, `TestLoader.loadTestsFromNames` now captures errors to self.errors. | |||||
* | | Close #22756: Improve the test output for some assertEqual tests. | Robert Collins | 2014-10-29 | 1 | -5/+3 | |
| | | | | | | | | | | | | These tests were undebuggable as written, and there's no testing fallacy involved in using the method we're testing to test the output of that method, so switch to that. | |||||
* | | Close #19746: expose unittest discovery errors on TestLoader.errors | Robert Collins | 2014-10-20 | 3 | -9/+52 | |
| | | | | | | | | | | | | This makes it possible to examine the errors from unittest discovery without executing the test suite - important when the test suite may be very large, or when enumerating the test ids from a test suite. | |||||
* | | Issue #22186: Fix typos in Lib/. | Berker Peksag | 2014-10-19 | 1 | -1/+1 | |
|\ \ | |/ | | | | | Patch by Févry Thibault. | |||||
| * | Issue #22186: Fix typos in Lib/. | Berker Peksag | 2014-10-19 | 1 | -1/+1 | |
| | | | | | | | | Patch by Févry Thibault. | |||||
* | | fix windows tests (#16662) | Benjamin Peterson | 2014-09-30 | 1 | -14/+15 | |
| | | | | | | | | From Robert Collins. | |||||
* | | Closes #21270 : We now override tuple methods in mock.call objects. | Kushal Das | 2014-09-16 | 2 | -0/+16 | |
| | | ||||||
* | | A few tweaks for issue16662 based on feedback from Robert Collins. | Barry Warsaw | 2014-09-08 | 2 | -38/+46 | |
| | | ||||||
* | | - Issue #16662: load_tests() is now unconditionally run when it is present in | Barry Warsaw | 2014-09-08 | 3 | -33/+427 | |
| | | | | | | | | | | | | | | 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 Melotti | 2014-08-07 | 7 | -5/+8 | |
|\ \ | |/ | ||||||
| * | #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. | Ezio Melotti | 2014-08-07 | 7 | -5/+8 | |
| | | ||||||
* | | Issue #22032: __qualname__ instead of __name__ is now always used to format | Serhiy Storchaka | 2014-07-22 | 2 | -4/+5 | |
| | | | | | | | | fully qualified class names of Python implemented classes. | |||||
* | | Suppress a couple more DeprecationWarnings in the test suite. | R David Murray | 2014-06-11 | 1 | -1/+1 | |
| | | ||||||
* | | Closes #21256: Printout of keyword args in deterministic order in mock calls. | Kushal Das | 2014-06-09 | 2 | -1/+7 | |
| | | | | | | | | | | 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 Pitrou | 2014-04-28 | 2 | -0/+34 | |
|\ \ | |/ | | | | | in the exception's traceback. | |||||
| * | Issue #9815: assertRaises now tries to clear references to local variables ↵ | Antoine Pitrou | 2014-04-28 | 2 | -0/+34 | |
| | | | | | | | | in the exception's traceback. | |||||
* | | Issue8297: module attribute lookup failures now include module name in error ↵ | Ethan Furman | 2014-04-24 | 1 | -5/+5 | |
| | | | | | | | | message. | |||||
* | | Fix typo in test method name. | Mark Dickinson | 2014-04-18 | 1 | -1/+1 | |
| | | ||||||
* | | Removes unused varargs and varkwargs from assert_not_called(). | Kushal Das | 2014-04-16 | 1 | -1/+1 | |
| | | ||||||
* | | Closes Issue 21262: New method assert_not_called for Mock. | Kushal Das | 2014-04-16 | 2 | -0/+17 | |
| | | | | | | | | It raises AssertionError if the mock has been called. | |||||
* | | Closes Issue 21238: New keyword argument `unsafe` to Mock. | Kushal Das | 2014-04-16 | 2 | -2/+17 | |
| | | | | | | | | | | It raises `AttributeError` incase of an attribute startswith assert or assret. | |||||
* | | Merge | Michael Foord | 2014-04-15 | 2 | -6/+28 | |
|\ \ | |/ | ||||||
| * | Closes issue 21239. unittest.mock.patch.stopall() did not work ↵ | Michael Foord | 2014-04-15 | 2 | -6/+28 | |
| | | | | | | | | deterministically when the same name was patched multiple times. | |||||
* | | Merge | Kushal Das | 2014-04-15 | 2 | -0/+6 | |
|\ \ | |/ | ||||||
| * | Closes Issue 21222. | Kushal Das | 2014-04-15 | 2 | -0/+6 | |
| | | | | | | | | Passing name keyword argument to mock.create_autospec now works. | |||||
* | | Closes issue 17660. You no longer need to explicitly pass create=True when ↵ | Michael Foord | 2014-04-14 | 2 | -2/+29 | |
|/ | | | | patching builtin names. | |||||
* | Issue 17826. Setting an iterable side_effect on a mock created by ↵ | Michael Foord | 2014-04-14 | 2 | -2/+31 | |
| | | | | create_autospec now works | |||||
* | Issue 20968. unittest.mock.MagicMock now supports division | Michael Foord | 2014-04-14 | 2 | -1/+28 | |
| | ||||||
* | backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex. | R David Murray | 2014-03-25 | 2 | -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 Hastings | 2014-01-24 | 1 | -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 with | Gregory P. Smith | 2014-01-20 | 2 | -5/+10 | |
| | | | | @expectedFailure successful if they pass. | |||||
* | Fix breakage in TestSuite.countTestCases() introduced by issue #11798. | Antoine Pitrou | 2013-12-28 | 2 | -4/+43 | |
| | ||||||
* | Remove commented out debugging code (remnants of issue #18996). | Serhiy Storchaka | 2013-12-10 | 1 | -2/+0 | |
| | ||||||
* | Close #19880: Fix a reference leak in unittest.TestCase. Explicitly break | Victor Stinner | 2013-12-09 | 2 | -1/+39 | |
| | | | | reference cycles between frames and the _Outcome instance. | |||||
* | Merge | Michael Foord | 2013-11-23 | 1 | -15/+2 | |
|\ | ||||||
| * | Remove shadowed test | Michael Foord | 2013-09-15 | 1 | -15/+2 | |
| | | ||||||
* | | Issue 17457: extend test discovery to support namespace packages | Michael Foord | 2013-11-23 | 2 | -11/+129 | |
| | | ||||||
* | | Issue #19594: Use specific asserts in unittest tests. | Serhiy Storchaka | 2013-11-16 | 7 | -28/+28 | |
|\ \ | ||||||
| * | | Issue #19594: Use specific asserts in unittest tests. | Serhiy Storchaka | 2013-11-16 | 7 | -28/+28 | |
| | | | ||||||
* | | | Issue #19352: Fix unittest discovery when a module can be reached through ↵ | Antoine Pitrou | 2013-10-23 | 2 | -3/+25 | |
|\ \ \ | |/ / | | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv). | |||||
| * | | Issue #19352: Fix unittest discovery when a module can be reached through ↵ | Antoine Pitrou | 2013-10-23 | 2 | -3/+25 | |
| | | | | | | | | | | | | several paths (e.g. under Debian/Ubuntu with virtualenv). | |||||
* | | | Issue #18996: TestCase.assertEqual() now more cleverly shorten differing | Serhiy Storchaka | 2013-09-23 | 3 | -16/+78 | |
| | | | | | | | | | | | | strings in error report. | |||||
* | | | Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ↵ | Antoine Pitrou | 2013-09-14 | 2 | -6/+199 | |
| | | | | | | | | | | | | ensure that a block of code emits a message using the logging module. | |||||
* | | | Adjust comment | Antoine Pitrou | 2013-09-13 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation | Antoine Pitrou | 2013-09-13 | 1 | -0/+18 | |
| | | | ||||||
* | | | Issue #19013: add a __main__ to unittest.test to ease CLI invocation | Antoine Pitrou | 2013-09-13 | 1 | -0/+18 | |
| | | | ||||||
* | | | Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules | Antoine Pitrou | 2013-09-13 | 3 | -2/+4 | |
| | | |