Kaydet (Commit) fae59e1a authored tarafından Berker Peksag's avatar Berker Peksag Kaydeden (comit) GitHub

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

(cherry picked from commit dea1536fd3a8424d537794cd53715df0989cbbe1)
üst 91c499f8
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment