Fix mock code coverage. (#100580)

This commit is contained in:
Chris Withers 2022-12-28 12:36:26 +00:00 committed by GitHub
parent 2d52406835
commit 457c1f4a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):