Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23004: mock_open() now reads binary data correctly when the type of ↵ | Berker Peksag | 2015-08-06 | 2 | -3/+32 |
|\ | | | | | | | | | | | read_data is bytes. Initial patch by Aaron Hill. | ||||
| * | Issue #23004: mock_open() now reads binary data correctly when the type of ↵ | Berker Peksag | 2015-08-06 | 2 | -3/+32 |
| | | | | | | | | | | | | read_data is bytes. Initial patch by Aaron Hill. | ||||
* | | Issue #21750: Further fixup to be styled like other mock APIs. | Robert Collins | 2015-07-23 | 3 | -39/+68 |
|\ \ | |/ | |||||
| * | Issue #21750: Further fixup to be styled like other mock APIs. | Robert Collins | 2015-07-23 | 3 | -39/+68 |
| | | |||||
* | | Typo fix in mock.patch. | Robert Collins | 2015-07-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch from https://github.com/testing-cabal/mock/issues/215 | ||||
| * | Typo fix in mock.patch. | Robert Collins | 2015-07-17 | 1 | -1/+1 |
| | | | | | | | | Patch from https://github.com/testing-cabal/mock/issues/215 | ||||
* | | Issue #21750: mock_open.read_data can now be read from each instance, as it | Robert Collins | 2015-07-17 | 3 | -35/+58 |
|\ \ | |/ | | | | | could in Python 3.3. | ||||
| * | Issue #21750: mock_open.read_data can now be read from each instance, as it | Robert Collins | 2015-07-17 | 3 | -35/+58 |
| | | | | | | | | could in Python 3.3. | ||||
* | | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. | Robert Collins | 2015-07-14 | 2 | -3/+12 |
|\ \ | |/ | | | | | Patch from Nicola Palumbo and Laurent De Buyst. | ||||
| * | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. | Robert Collins | 2015-07-14 | 2 | -3/+12 |
| | | | | | | | | Patch from Nicola Palumbo and Laurent De Buyst. | ||||
| * | Reverted issue #24134 changes (except new tests). | Serhiy Storchaka | 2015-05-16 | 2 | -24/+11 |
| | | |||||
* | | Issue #23661: unittest.mock side_effects can now be exceptions again. | Robert Collins | 2015-07-14 | 2 | -1/+11 |
| | | | | | | | | This was a regression vs Python 3.4. Patch from Ignacio Rossi | ||||
* | | Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-21 | 2 | -0/+69 |
| | | | | | | | | | | assertWarnsRegex() assertments now check the type of the first argument to prevent possible user error. Based on patch by Daniel Wagner-Hall. | ||||
* | | Issue #24245: Eliminated senseless expect clauses that have no any effect. | Serhiy Storchaka | 2015-05-20 | 1 | -4/+0 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-16 | 2 | -48/+84 |
| | | | | | | | | | | assertWarnsRegex() checks now emits a deprecation warning when callable is None or keyword arguments except msg is passed in the context manager mode. | ||||
* | | Fixed English in error message. | Serhiy Storchaka | 2015-05-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fixed English in error message. | Serhiy Storchaka | 2015-05-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-06 | 2 | -11/+65 |
|\ \ | |/ | | | | | | | | | assertWarnsRegex() checks are not longer successful if the callable is None. Added tests for assertRaises(). | ||||
| * | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-06 | 2 | -11/+65 |
| | | | | | | | | | | | | assertWarnsRegex() checks are not longer successful if the callable is None. Added tests for assertRaises(). | ||||
| * | Issue #23310: Fix MagicMock's initializer to work with __methods__. | Łukasz Langa | 2015-04-14 | 2 | -2/+18 |
| | | | | | | | | Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim. | ||||
* | | Issue #23310: Fix MagicMock's initializer to work with __methods__. | Łukasz Langa | 2015-04-14 | 2 | -2/+18 |
| | | | | | | | | Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim. | ||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -2/+2 |
| | | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | ||||
* | | Issue #22903: The fake test case created by unittest.loader when it fails ↵ | Antoine Pitrou | 2015-03-18 | 2 | -10/+34 |
|\ \ | |/ | | | | | importing a test module is now picklable. | ||||
| * | Issue #22903: The fake test case created by unittest.loader when it fails ↵ | Antoine Pitrou | 2015-03-18 | 2 | -9/+29 |
| | | | | | | | | importing a test module is now picklable. | ||||
* | | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 2 | -1/+18 |
|\ \ | |/ | | | | | Patch by Håkan Lövdahl. | ||||
| * | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 2 | -1/+18 |
| | | | | | | | | Patch by Håkan Lövdahl. | ||||
* | | Issue #23581: Add matmul support to MagicMock. | Berker Peksag | 2015-03-12 | 2 | -1/+12 |
| | | | | | | | | Patch by Håkan Lövdahl. | ||||
* | | Issue #22936: Allow showing local variables in unittest errors. | Robert Collins | 2015-03-06 | 7 | -25/+97 |
| | | |||||
* | | unittest: Trivial typo fix. | Robert Collins | 2015-03-05 | 1 | -1/+1 |
| | | |||||
* | | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ | Serhiy Storchaka | 2015-01-31 | 1 | -4/+0 |
| | | | | | | | | implementation in issue #21408 they are redundant. | ||||
* | | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 2 | -6/+0 |
|\ \ | |/ | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
| * | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 2 | -6/+0 |
| | | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
* | | Issue #22823: Fix typo in unittest/mock.py | Victor Stinner | 2014-12-11 | 1 | -1/+1 |
| | | |||||
* | | Issue #22823: Use set literals instead of creating a set from a list. | Serhiy Storchaka | 2014-12-11 | 1 | -16/+15 |
| | | | | | | | | Fixed an output of sets in examples. | ||||
* | | 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. | ||||
| * | 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. |