summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest
diff options
context:
space:
mode:
authorChris Withers <chris@withers.org>2023-07-11 08:52:12 (GMT)
committerGitHub <noreply@github.com>2023-07-11 08:52:12 (GMT)
commite6379f72cbc60f6b3c5676f9e225d4f145d5693f (patch)
treef33d21e8ffd9ffc6e43d8f7e5c15f405abd4cf4d /Lib/test/test_unittest
parent4bd8320dd7922d529eab51753dd524e8bf9c47b2 (diff)
downloadcpython-e6379f72cbc60f6b3c5676f9e225d4f145d5693f.zip
cpython-e6379f72cbc60f6b3c5676f9e225d4f145d5693f.tar.gz
cpython-e6379f72cbc60f6b3c5676f9e225d4f145d5693f.tar.bz2
Remove unused branches from mock module (#106617)
* lambda has a name of __none__, but no async lambda so this branch is not needed * _get_signature_object only returns None for bound builtins. There are no async builtins so this branch isn't needed * Exclude a couple of methods from coverage checking in the downstream rolling backport of mock
Diffstat (limited to 'Lib/test/test_unittest')
-rw-r--r--Lib/test/test_unittest/testmock/testthreadingmock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unittest/testmock/testthreadingmock.py b/Lib/test/test_unittest/testmock/testthreadingmock.py
index c6f1794..b6e12bc 100644
--- a/Lib/test/test_unittest/testmock/testthreadingmock.py
+++ b/Lib/test/test_unittest/testmock/testthreadingmock.py
@@ -11,10 +11,10 @@ threading_helper.requires_working_threading(module=True)
class Something:
def method_1(self):
- pass
+ pass # pragma: no cover
def method_2(self):
- pass
+ pass # pragma: no cover
class TestThreadingMock(unittest.TestCase):