diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-12-13 22:45:10 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-12-13 22:45:10 -0500 |
commit | c573785e27091fb848fda48591dfdb40fd7afdcc (patch) | |
tree | 90b28404080164ff360c2645eb1326acf2047b44 /tests/coveragetest.py | |
parent | 1582330616882c0c3024dd2a54b1e6fd390ddffb (diff) | |
parent | ef5aef10e2615dcbfe205e230e7c74f4e7a1a805 (diff) | |
download | python-coveragepy-c573785e27091fb848fda48591dfdb40fd7afdcc.tar.gz |
Merged 4.0 to default
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r-- | tests/coveragetest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index e1c38b2..d047a47 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -350,20 +350,21 @@ class CoverageTest(TestCase): # Get the analysis results, and check that they are right. analysis = cov._analyze(mod) + statements = sorted(analysis.statements) if lines is not None: if type(lines[0]) == type(1): # lines is just a list of numbers, it must match the statements # found in the code. - self.assertEqual(analysis.statements, lines) + self.assertEqual(statements, lines) else: # lines is a list of possible line number lists, one of them # must match. for line_list in lines: - if analysis.statements == line_list: + if statements == line_list: break else: self.fail("None of the lines choices matched %r" % - analysis.statements + statements ) if type(missing) == type(""): |