summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-05-27 21:33:07 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-05-27 21:33:07 -0400
commit2aa89faae8cf8c8312b5bd7faf72ed55bed553b6 (patch)
tree295736cd2efd77e060245a6b20fb0bd28d151d87 /tests/test_arcs.py
parent19ed82aa4bf349168f8fe460d1bb20d0c513adb2 (diff)
downloadpython-coveragepy-2aa89faae8cf8c8312b5bd7faf72ed55bed553b6.tar.gz
Dict literals changed in 3.5b1
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index a4462ea..c0cbac7 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -672,6 +672,11 @@ class MiscArcTest(CoverageTest):
"""Miscellaneous arc-measuring tests."""
def test_dict_literal(self):
+ if env.PYVERSION < (3, 5):
+ arcz = ".1 19 9."
+ else:
+ # Python 3.5 changed how dict literals are constructed.
+ arcz = ".1 19 9-2"
self.check_coverage("""\
d = {
'a': 2,
@@ -683,7 +688,7 @@ class MiscArcTest(CoverageTest):
}
assert d
""",
- arcz=".1 19 9.")
+ arcz=arcz)
def test_pathologically_long_code_object(self):
# https://bitbucket.org/ned/coveragepy/issue/359