mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix mock code coverage. (#100580)
This commit is contained in:
parent
2d52406835
commit
457c1f4a19
1 changed files with 3 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue