From: Chris Withers Date: Mon, 9 Jan 2023 10:08:56 +0000 (+0000) Subject: fix up mock tests coverage (#100874) X-Git-Tag: v3.12.0a4~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e544eafcb603babe0db01270bd1c6d5d0f5d6ea;p=thirdparty%2FPython%2Fcpython.git fix up mock tests coverage (#100874) --- diff --git a/Lib/test/test_unittest/testmock/testmock.py b/Lib/test/test_unittest/testmock/testmock.py index 97fe66fa4ca2..d1cae47a40ee 100644 --- a/Lib/test/test_unittest/testmock/testmock.py +++ b/Lib/test/test_unittest/testmock/testmock.py @@ -1653,11 +1653,9 @@ class MockTest(unittest.TestCase): m.has_calls() class Foo(object): - def called_once(self): - pass + def called_once(self): pass - def has_calls(self): - pass + def has_calls(self): pass m = Mock(spec=Foo) m.called_once() @@ -1679,11 +1677,9 @@ class MockTest(unittest.TestCase): # gh-100739 def test_mock_safe_with_spec(self): class Foo(object): - def assert_bar(self): - pass + def assert_bar(self): pass - def assertSome(self): - pass + def assertSome(self): pass m = Mock(spec=Foo) m.assert_bar()