]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix up mock tests coverage (#100874)
authorChris Withers <chris@withers.org>
Mon, 9 Jan 2023 10:08:56 +0000 (10:08 +0000)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 10:08:56 +0000 (10:08 +0000)
Lib/test/test_unittest/testmock/testmock.py

index 97fe66fa4ca2a51a094b2adaf276091c38d7f25e..d1cae47a40eed4ff840302801a04c0efaf252973 100644 (file)
@@ -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()