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
This commit is contained in:
Chris Withers 2023-07-11 09:52:12 +01:00 committed by GitHub
parent 4bd8320dd7
commit e6379f72cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View file

@ -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):