summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes.Serhiy Storchaka2016-06-191-0/+1
|\
| * Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes.Serhiy Storchaka2016-06-191-0/+1
| |
* | Issue #21271: Adds new keyword only parameters in reset_mock callKushal Das2016-06-022-1/+24
| | | | | | | | | | We now have two keyword only parameters in the reset_mock function to selectively reset the return_value or the side_effects, or both.
* | Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-1/+1
|\ \ | |/
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
| |
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-262-2/+2
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-262-2/+2
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Issue #27063: Some unittest loader tests were silently skipped.Serhiy Storchaka2016-05-201-26/+28
|\ \ | |/
| * Issue #27063: Some unittest loader tests were silently skipped.Serhiy Storchaka2016-05-201-26/+28
| |
* | Issue #26807: mock_open 'files' no longer error on readline at end of file.Robert Collins2016-05-162-0/+14
|\ \ | |/ | | | | Patch from Yolanda Robla.
| * Issue #26807: mock_open 'files' no longer error on readline at end of file.Robert Collins2016-05-162-0/+14
| | | | | | | | Patch from Yolanda Robla.
* | Merge 3.5Serhiy Storchaka2016-04-252-3/+79
|\ \ | |/
| * Issue #26837: assertSequenceEqual() now correctly outputs non-stringifiedSerhiy Storchaka2016-04-252-3/+79
| | | | | | | | | | differing items (like bytes in the -b mode). This affects assertListEqual() and assertTupleEqual().
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-242-3/+2
| |
* | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-241-2/+0
| | | | | | | | Patch by Jon Dufresne.
* | Merge 3.5 (test_unittest)Victor Stinner2016-03-291-3/+6
|\ \ | |/
| * Fix ResourceWarning in test_unittest when interruptedVictor Stinner2016-03-291-3/+6
| |
* | Issue #25195: Fix a regression in mock.MagicMockBerker Peksag2016-03-272-0/+20
|\ \ | |/ | | | | | | | | | | _Call is a subclass of tuple (changeset 3603bae63c13 only works for classes) so we need to implement __ne__ ourselves. Patch by Andrew Plummer.
| * Issue #25195: Fix a regression in mock.MagicMockBerker Peksag2016-03-272-0/+20
| | | | | | | | | | | | | | _Call is a subclass of tuple (changeset 3603bae63c13 only works for classes) so we need to implement __ne__ ourselves. Patch by Andrew Plummer.
* | #25320: Handle sockets in directories unittest discovery is scanning.Robert Collins2016-03-152-0/+42
|\ \ | |/ | | | | Patch from Victor van den Elzen.
| * #25320: Handle sockets in directories unittest discovery is scanning.Robert Collins2016-03-152-0/+42
| | | | | | | | Patch from Victor van den Elzen.
* | Add Mock.assert_called()Victor Stinner2016-03-112-0/+39
| | | | | | | | | | Issue #26323: Add assert_called() and assert_called_once() methods to unittest.mock.Mock.
* | Merge 'used with permission' additionsBrett Cannon2016-01-151-1/+1
|\ \ | |/
| * Add some "used with permission" mentions where external resources are ↵Brett Cannon2016-01-151-1/+1
| | | | | | | | | | | | referenced. Permission was validated prior to adding these markings.
* | Issue25347 - Format the error message output of mock's assert_has_calls method.Senthil Kumaran2016-01-121-1/+1
|/ | | | Patch contributed by Robert Zimmerman.
* Issue #22138: Fix mock.patch behavior when patching descriptors. RestoreSenthil Kumaran2016-01-092-1/+30
| | | | | | original values after patching. Patch contributed by Sean McCully.
* Issue #25523: Further a-to-an corrections new in 3.5Martin Panter2015-11-021-2/+2
|
* Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-1/+1
|\ | | | | | | Fixed the case of the "Ctrl-" prefixes.
| * Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-1/+1
| | | | | | | | Fixed the case of the "Ctrl-" prefixes.
* | Issue #24857: Comparing call_args to a long sequence now correctly returns aBerker Peksag2015-09-092-2/+6
|\ \ | |/ | | | | | | | | boolean result instead of raising an exception. Patch by A Kaptur.
| * Issue #24857: Comparing call_args to a long sequence now correctly returns aBerker Peksag2015-09-092-2/+6
| | | | | | | | | | | | boolean result instead of raising an exception. Patch by A Kaptur.
* | Issue #21112: Fix regression in unittest.expectedFailure on subclasses.Robert Collins2015-08-272-2/+38
|\ \ | |/ | | | | Patch from Berker Peksag.
| * Issue #21112: Fix regression in unittest.expectedFailure on subclasses.Robert Collins2015-08-272-2/+38
| | | | | | | | Patch from Berker Peksag.
* | Issue #20362: Honour TestCase.longMessage correctly in assertRegex.Robert Collins2015-08-192-8/+25
| | | | | | | | Patch from Ilia Kurenkov.
* | Issue #23004: mock_open() now reads binary data correctly when the type of ↵Berker Peksag2015-08-062-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 Peksag2015-08-062-3/+32
| | | | | | | | | | | | read_data is bytes. Initial patch by Aaron Hill.
* | Issue #21750: Further fixup to be styled like other mock APIs.Robert Collins2015-07-233-39/+68
|\ \ | |/
| * Issue #21750: Further fixup to be styled like other mock APIs.Robert Collins2015-07-233-39/+68
| |
* | Typo fix in mock.patch.Robert Collins2015-07-171-1/+1
|\ \ | |/ | | | | Patch from https://github.com/testing-cabal/mock/issues/215
| * Typo fix in mock.patch.Robert Collins2015-07-171-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 itRobert Collins2015-07-173-35/+58
|\ \ | |/ | | | | could in Python 3.3.
| * Issue #21750: mock_open.read_data can now be read from each instance, as itRobert Collins2015-07-173-35/+58
| | | | | | | | could in Python 3.3.
* | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.Robert Collins2015-07-142-3/+12
|\ \ | |/ | | | | Patch from Nicola Palumbo and Laurent De Buyst.
| * - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.Robert Collins2015-07-142-3/+12
| | | | | | | | Patch from Nicola Palumbo and Laurent De Buyst.
| * Reverted issue #24134 changes (except new tests).Serhiy Storchaka2015-05-162-24/+11
| |
* | Issue #23661: unittest.mock side_effects can now be exceptions again.Robert Collins2015-07-142-1/+11
| | | | | | | | This was a regression vs Python 3.4. Patch from Ignacio Rossi
* | Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() andSerhiy Storchaka2015-05-212-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 Storchaka2015-05-201-4/+0
| | | | | | | | Patch by Martin Panter.
* | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() andSerhiy Storchaka2015-05-162-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 Storchaka2015-05-061-1/+1
|\ \ | |/