summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-01-18 19:49:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-01-18 19:49:40 -0500
commitee735fe1eabe15cdef88156a8d0108d87e627f55 (patch)
tree3b69a3ff11169bb55ce74cbdcb4f97a2db006e29 /tests/test_plugins.py
parent8d60d392c5d9b00560c4a9418902f12126dae125 (diff)
downloadpython-coveragepy-git-ee735fe1eabe15cdef88156a8d0108d87e627f55.tar.gz
Make the plugin test work on Windows
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index f3b8d580..718bf2ca 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -1,5 +1,7 @@
"""Tests for plugins."""
+import os.path
+
import coverage
from coverage import env
from coverage.control import Plugins
@@ -160,7 +162,8 @@ if not env.C_TRACER:
_, statements, missing, _ = cov.analysis("simple.py")
self.assertEqual(statements, [1, 2, 3])
self.assertEqual(missing, [])
- _, statements, _, _ = cov.analysis("/src/try_ABC.zz")
+ zzfile = os.path.abspath(os.path.join("/src", "try_ABC.zz"))
+ _, statements, _, _ = cov.analysis(zzfile)
self.assertEqual(statements, [105, 106, 107, 205, 206, 207])
def test_plugin2(self):