mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
4bd8320dd7
commit
e6379f72cb
2 changed files with 3 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue