mirror of https://github.com/python/cpython
bpo-28961: Address my comments from earlier code review (#305)
This commit is contained in:
parent
160edb4357
commit
5aa3856b4f
|
@ -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…
Reference in New Issue