From ee735fe1eabe15cdef88156a8d0108d87e627f55 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 18 Jan 2015 19:49:40 -0500 Subject: Make the plugin test work on Windows --- tests/test_plugins.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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): -- cgit v1.2.1