From ee6cf0c30ea149ce07b224c44fbf7bf51bb0c237 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 10 Mar 2009 11:02:31 -0400 Subject: When writing the actual annotation results, include the Python version number so running alltests won't erase results from earlier Python versions. --- test_coverage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test_coverage.py') diff --git a/test_coverage.py b/test_coverage.py index a352b6c..a69852d 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 -- cgit v1.2.1