bpo-28961: Address my comments from earlier code review (#305)

This commit is contained in:
Berker Peksag 2017-02-26 15:04:11 +03:00 committed by GitHub
parent 160edb4357
commit 5aa3856b4f
1 changed files with 3 additions and 12 deletions

View File

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