Skip to content

Commit

Permalink
Fix mock code coverage. (#100580)
Browse files Browse the repository at this point in the history
Backports: 457c1f4a19a096a52d6553687c7c4cee415818dc
Signed-off-by: Chris Withers <chris@simplistix.co.uk>
  • Loading branch information
cjw296 committed Dec 28, 2022
1 parent 78fed8a commit 5462a55
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mock/tests/testsealable.py
Expand Up @@ -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):
Expand Down

0 comments on commit 5462a55

Please sign in to comment.