Skip to content

Commit 457c1f4

Browse files
authored
Fix mock code coverage. (#100580)
1 parent 2d52406 commit 457c1f4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Lib/test/test_unittest/testmock/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)