summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
commitbad63e02b113626a048ea5eb253293c61902e291 (patch)
treeefb98eaafdf9d9212b53a1e51a782f7ff00cca41 /tests/coveragetest.py
parentb3df60a544a54b4dd604d34137ff08e02b815e81 (diff)
downloadpython-coveragepy-git-bad63e02b113626a048ea5eb253293c61902e291.tar.gz
Generator expressons are ok now.
--HG-- branch : 4.0
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index cb2957da..d4d82f12 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -266,10 +266,10 @@ class CoverageTest(TestCase):
# Map chars to numbers for arcz_to_arcs
_arcz_map = {'.': -1}
- _arcz_map.update(dict([(c, ord(c)-ord('0')) for c in '123456789']))
+ _arcz_map.update(dict((c, ord(c)-ord('0')) for c in '123456789'))
_arcz_map.update(dict(
- [(c, 10+ord(c)-ord('A')) for c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ']
- ))
+ (c, 10+ord(c)-ord('A')) for c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+ ))
def arcz_to_arcs(self, arcz):
"""Convert a compact textual representation of arcs to a list of pairs.
@@ -305,8 +305,8 @@ class CoverageTest(TestCase):
def assertEqualArcs(self, a1, a2, msg=None):
"""Assert that the arc lists `a1` and `a2` are equal."""
# Make them into multi-line strings so we can see what's going wrong.
- s1 = "\n".join([repr(a) for a in a1]) + "\n"
- s2 = "\n".join([repr(a) for a in a2]) + "\n"
+ s1 = "\n".join(repr(a) for a in a1) + "\n"
+ s2 = "\n".join(repr(a) for a in a2) + "\n"
self.assertMultiLineEqual(s1, s2, msg)
def check_coverage(self, text, lines=None, missing="", report="",