From 0eb479eb36ecbb039bca253c6eee336e8a0d8eed Mon Sep 17 00:00:00 2001 From: Chris Withers Date: Wed, 28 Dec 2022 11:57:22 +0000 Subject: [PATCH] Fix mock code coverage. --- Lib/test/test_unittest/testmock/testsealable.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Lib/test/test_unittest/testmock/testsealable.py b/Lib/test/test_unittest/testmock/testsealable.py index e0c38293cffd7a..8bf98cfa562bed 100644 --- a/Lib/test/test_unittest/testmock/testsealable.py +++ b/Lib/test/test_unittest/testmock/testsealable.py @@ -175,15 +175,12 @@ def test_seal_with_autospec(self): # https://bugs.python.org/issue45156 class Foo: foo = 0 - def bar1(self): - return 1 - def bar2(self): - return 2 + def bar1(self): pass + def bar2(self): pass class Baz: baz = 3 - def ban(self): - return 4 + def ban(self): pass for spec_set in (True, False): with self.subTest(spec_set=spec_set):