summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-01 12:18:57 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-01 12:18:57 -0500
commit9edd625b8fdb09b5494471d460eba11148104e28 (patch)
tree783820c9479493c9f37586e64ae2f04a88a51c09 /tests
parent334f95902f91e54e60600072d7e1816670627718 (diff)
downloadpython-coveragepy-git-9edd625b8fdb09b5494471d460eba11148104e28.tar.gz
All test_arcs.py tests pass on py27 and py35
--HG-- branch : ast-branch
Diffstat (limited to 'tests')
-rw-r--r--tests/test_arcs.py25
1 files changed, 20 insertions, 5 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 3dc05c9c..a9533e78 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -804,7 +804,21 @@ class MiscArcTest(CoverageTest):
}
assert d
""",
- arcz=arcz)
+ arcz=arcz,
+ )
+ self.check_coverage("""\
+ d = \\
+ { 'a': 2,
+ 'b': 3,
+ 'c': {
+ 'd': 5,
+ 'e': 6,
+ }
+ }
+ assert d
+ """,
+ arcz=".1 19 9-2",
+ )
def test_pathologically_long_code_object(self):
# https://bitbucket.org/ned/coveragepy/issue/359
@@ -814,17 +828,18 @@ class MiscArcTest(CoverageTest):
code = """\
data = [
""" + "".join("""\
- [{i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}],
+ [
+ {i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}, {i}],
""".format(i=i) for i in range(2000)
) + """\
]
- if __name__ == "__main__":
- print(len(data))
+ print(len(data))
"""
self.check_coverage(
code,
- arcs=[(-1, 1), (1, 2004), (2004, -2), (2004, 2005), (2005, -2)],
+ arcs=[(-1, 1), (1, 4004), (4004, -3)],
+ arcs_missing=[], arcs_unpredicted=[],
)