mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-28961: Address my comments from earlier code review (#305)
This commit is contained in:
parent
160edb4357
commit
5aa3856b4f
1 changed files with 3 additions and 12 deletions
|
@ -307,18 +307,9 @@ class CallTest(unittest.TestCase):
|
|||
self.assertEqual(args, other_args)
|
||||
|
||||
def test_call_with_name(self):
|
||||
self.assertEqual(
|
||||
'foo',
|
||||
_Call((), 'foo')[0],
|
||||
)
|
||||
self.assertEqual(
|
||||
'',
|
||||
_Call((('bar', 'barz'), ), )[0]
|
||||
)
|
||||
self.assertEqual(
|
||||
'',
|
||||
_Call((('bar', 'barz'), {'hello': 'world'}), )[0]
|
||||
)
|
||||
self.assertEqual(_Call((), 'foo')[0], 'foo')
|
||||
self.assertEqual(_Call((('bar', 'barz'),),)[0], '')
|
||||
self.assertEqual(_Call((('bar', 'barz'), {'hello': 'world'}),)[0], '')
|
||||
|
||||
|
||||
class SpecSignatureTest(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue