summaryrefslogtreecommitdiff
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
commitf989159f0ca985b476f5b7d7d5bc070c6e0e989f (patch)
tree2eb7f4504b41375912b6c5a9c65380a6902a80e7
parentb90e592e26da67372cb633150c49372799dc51bf (diff)
downloadpython-coveragepy-f989159f0ca985b476f5b7d7d5bc070c6e0e989f.tar.gz
Make the plugin test work on Windows
-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 f3b8d58..718bf2c 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):