bpo-28961: Address my comments from earlier code review (#306)
(cherry picked from commit dea1536fd3a8424d537794cd53715df0989cbbe1)
diff --git a/Lib/unittest/test/testmock/testhelpers.py b/Lib/unittest/test/testmock/testhelpers.py
index d5f9e7c..d2202a7 100644
--- a/Lib/unittest/test/testmock/testhelpers.py
+++ b/Lib/unittest/test/testmock/testhelpers.py
@@ -307,18 +307,9 @@
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):