diff options
author | Chris Withers <chris@withers.org> | 2022-12-28 12:36:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 12:36:26 (GMT) |
commit | 457c1f4a19a096a52d6553687c7c4cee415818dc (patch) | |
tree | 1137e2a191339e9a2ea9818a4ac0c9aff5a365db | |
parent | 2d524068351a33feafa905becc148f3447697e92 (diff) | |
download | cpython-457c1f4a19a096a52d6553687c7c4cee415818dc.zip cpython-457c1f4a19a096a52d6553687c7c4cee415818dc.tar.gz cpython-457c1f4a19a096a52d6553687c7c4cee415818dc.tar.bz2 |
Fix mock code coverage. (#100580)
-rw-r--r-- | Lib/test/test_unittest/testmock/testsealable.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/test/test_unittest/testmock/testsealable.py b/Lib/test/test_unittest/testmock/testsealable.py index e0c3829..8bf98cf 100644 --- a/Lib/test/test_unittest/testmock/testsealable.py +++ b/Lib/test/test_unittest/testmock/testsealable.py @@ -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): |