summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-02-26 13:05:30 (GMT)
committerGitHub <noreply@github.com>2017-02-26 13:05:30 (GMT)
commitfae59e1aa87ee9598d032e0bd697969a5784025f (patch)
tree0c270ccf48ddecabb3497fe3a7560a7270400d02 /Lib/unittest
parent91c499f8f94b89c08686ac9e7c81ea1d89221cbc (diff)
downloadcpython-fae59e1aa87ee9598d032e0bd697969a5784025f.zip
cpython-fae59e1aa87ee9598d032e0bd697969a5784025f.tar.gz
cpython-fae59e1aa87ee9598d032e0bd697969a5784025f.tar.bz2
bpo-28961: Address my comments from earlier code review (#306)
(cherry picked from commit dea1536fd3a8424d537794cd53715df0989cbbe1)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/testmock/testhelpers.py15
1 files changed, 3 insertions, 12 deletions
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 @@ 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):