summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Withers <chris@withers.org>2019-05-02 07:04:19 +0100
committerChris Withers <chris@withers.org>2019-05-02 09:00:35 +0100
commitdd7c43f9190b7fe5903a57e081b1b49dac0a912e (patch)
tree27a1e70fed12375ac14f9da231b0f55aba23e681
parent700a51dff7e1966aa0eb29f5911eb8a6fb069d39 (diff)
downloadmock-dd7c43f9190b7fe5903a57e081b1b49dac0a912e.tar.gz
remove a long-disabled test that wasn't present on cpython master
-rw-r--r--mock/tests/testmock.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/mock/tests/testmock.py b/mock/tests/testmock.py
index cb1cc66..5f6045a 100644
--- a/mock/tests/testmock.py
+++ b/mock/tests/testmock.py
@@ -1941,21 +1941,6 @@ class MockTest(unittest.TestCase):
self.assertRaises(TypeError, mock.child, 1)
self.assertEqual(mock.mock_calls, [call.child(1, 2)])
- @unittest.expectedFailure
- def test_pickle(self):
- for Klass in (MagicMock, Mock, Subclass, NonCallableMagicMock):
- mock = Klass(name='foo', attribute=3)
- mock.foo(1, 2, 3)
- data = pickle.dumps(mock)
- new = pickle.loads(data)
-
- new.foo.assert_called_once_with(1, 2, 3)
- self.assertFalse(new.called)
- self.assertTrue(is_instance(new, Klass))
- self.assertIsInstance(new, Thing)
- self.assertIn('name="foo"', repr(new))
- self.assertEqual(new.attribute, 3)
-
def test_isinstance_under_settrace(self):
# bpo-36593 : __class__ is not set for a class that has __class__
# property defined when it's used with sys.settrace(trace) set.