]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix mock code coverage. (#100580)
authorChris Withers <chris@withers.org>
Wed, 28 Dec 2022 12:36:26 +0000 (12:36 +0000)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 12:36:26 +0000 (12:36 +0000)
Lib/test/test_unittest/testmock/testsealable.py

index e0c38293cffd7ac51eb6957d37e17d26f0fa637e..8bf98cfa562bedc40f49cbe96768a379c002833b 100644 (file)
@@ -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):