Visitar URL original
Fix mock code coverage. (#100580) · testing-cabal/mock@5462a55 · GitHub
Skip to content

Commit 5462a55

Browse files
committed
Fix mock code coverage. (#100580)
Backports: 457c1f4a19a096a52d6553687c7c4cee415818dc Signed-off-by: Chris Withers <chris@simplistix.co.uk>
1 parent 78fed8a commit 5462a55

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎mock/tests/testsealable.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,12 @@ def test_seal_with_autospec(self):
175175
# https://bugs.python.org/issue45156
176176
class Foo:
177177
foo = 0
178-
def bar1(self):
179-
return 1
180-
def bar2(self):
181-
return 2
178+
def bar1(self): pass
179+
def bar2(self): pass
182180

183181
class Baz:
184182
baz = 3
185-
def ban(self):
186-
return 4
183+
def ban(self): pass
187184

188185
for spec_set in (True, False):
189186
with self.subTest(spec_set=spec_set):

0 commit comments

Comments
 (0)