From f4844c7a7f49fc07fdfc3f6d056c22cc14283562 Mon Sep 17 00:00:00 2001 From: Elizabeth Uselton Date: Sun, 21 Jul 2019 18:43:13 -0700 Subject: [PATCH] Revert "bpo-37555: Add regression tests for mock ANY ordering issues" This reverts commit 49c5310ad493c4356dd3bc58c03653cd9466c4fa. --- Lib/unittest/test/testmock/testhelpers.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Lib/unittest/test/testmock/testhelpers.py b/Lib/unittest/test/testmock/testhelpers.py index 75d4ac54078e..49fffa38439f 100644 --- a/Lib/unittest/test/testmock/testhelpers.py +++ b/Lib/unittest/test/testmock/testhelpers.py @@ -322,16 +322,6 @@ class CallTest(unittest.TestCase): kall = call(1).method(2)(3).foo.bar.baz(4)(5).__int__() self.assertEqual(kall.call_list(), mock.mock_calls) - def test_call_list_with_any_comparison_order(self): - class Foo: - def __eq__(self, other): pass - def __ne__(self, other): pass - - mock = MagicMock() - mock(Foo()) - - self.assertEqual(call(ANY).call_list(), mock.mock_calls) - self.assertEqual(mock.mock_calls, call(ANY).call_list()) def test_call_any(self): self.assertEqual(call, ANY) @@ -341,16 +331,6 @@ class CallTest(unittest.TestCase): self.assertEqual(m.mock_calls, [ANY]) self.assertEqual([ANY], m.mock_calls) - def test_call_any_comparison_order(self): - class Foo: - def __eq__(self, other): pass - def __ne__(self, other): pass - - m = MagicMock() - m(Foo()) - - self.assertEqual(m.mock_calls[0], call(ANY)) - self.assertEqual(call(ANY), m.mock_calls[0]) def test_two_args_call(self): args = _Call(((1, 2), {'a': 3}), two=True) -- 2.47.3