From: Chris Withers Date: Wed, 28 Dec 2022 12:36:26 +0000 (+0000) Subject: Fix mock code coverage. (#100580) X-Git-Tag: v3.12.0a4~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=457c1f4a19a096a52d6553687c7c4cee415818dc;p=thirdparty%2FPython%2Fcpython.git Fix mock code coverage. (#100580) --- diff --git a/Lib/test/test_unittest/testmock/testsealable.py b/Lib/test/test_unittest/testmock/testsealable.py index e0c38293cffd..8bf98cfa562b 100644 --- a/Lib/test/test_unittest/testmock/testsealable.py +++ b/Lib/test/test_unittest/testmock/testsealable.py @@ -175,15 +175,12 @@ class TestSealable(unittest.TestCase): # 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):