diff --git a/Lib/test/test_unittest/testmock/testmock.py b/Lib/test/test_unittest/testmock/testmock.py index 97fe66fa4ca..d1cae47a40e 100644 --- a/Lib/test/test_unittest/testmock/testmock.py +++ b/Lib/test/test_unittest/testmock/testmock.py @@ -1653,11 +1653,9 @@ def test_mock_unsafe(self): 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 @@ def has_calls(self): # 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()