]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove unused branches from mock module (#106617)
authorChris Withers <chris@withers.org>
Tue, 11 Jul 2023 08:52:12 +0000 (09:52 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Jul 2023 08:52:12 +0000 (08:52 +0000)
commite6379f72cbc60f6b3c5676f9e225d4f145d5693f
treef33d21e8ffd9ffc6e43d8f7e5c15f405abd4cf4d
parent4bd8320dd7922d529eab51753dd524e8bf9c47b2
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
Lib/test/test_unittest/testmock/testthreadingmock.py
Lib/unittest/mock.py