diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-03-10 11:02:31 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-03-10 11:02:31 -0400 |
commit | 7391072359f95ca908797e77b0ae96ccbea5dff3 (patch) | |
tree | 29ff2bad5bf3879c4c9686e55e87b2eea453dd51 /test_coverage.py | |
parent | 1ed367bd0058b8946d3bc4647f9e502b4d3f5418 (diff) | |
download | python-coveragepy-git-7391072359f95ca908797e77b0ae96ccbea5dff3.tar.gz |
When writing the actual annotation results, include the Python version number so running alltests won't erase results from earlier Python versions.
Diffstat (limited to 'test_coverage.py')
-rw-r--r-- | test_coverage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test_coverage.py b/test_coverage.py index a352b6c5..a69852d0 100644 --- a/test_coverage.py +++ b/test_coverage.py @@ -151,7 +151,8 @@ class CoverageTest(unittest.TestCase): coverage.annotate([modname+'.py']) expect = (path.path(self.olddir) / annfile).text() actual = path.path(modname + '.py,cover').text() - out = path.path(self.olddir) / (annfile + "_actual") + # Write the actual results into a file for comparison. + out = path.path(self.olddir) / (annfile + "_actual_%s%s" % (sys.version_info[:2])) # Check if the results are right if expect == actual: # They are right: delete the old test results if they are still |