summaryrefslogtreecommitdiff
path: root/test/test_codeunit.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-22 07:22:56 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-22 07:22:56 -0400
commitd18c4a8ca50361893eaa7ba86821a136ba7a4807 (patch)
treed5b682a46e9b44a6edd6e12771ffc831503cb594 /test/test_codeunit.py
parentcfdd8b9c6c9a0fc0bb0d332dd034330a37ea5a1f (diff)
downloadpython-coveragepy-d18c4a8ca50361893eaa7ba86821a136ba7a4807.tar.gz
The best way to get py3k support: same source runs on both, with some contortions.
Diffstat (limited to 'test/test_codeunit.py')
-rw-r--r--test/test_codeunit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_codeunit.py b/test/test_codeunit.py
index 46853b7..36ca1fc 100644
--- a/test/test_codeunit.py
+++ b/test/test_codeunit.py
@@ -4,6 +4,8 @@ import os, sys
from coverage.codeunit import code_unit_factory
from coverage.files import FileLocator
+
+sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k
from coveragetest import CoverageTest
# pylint: disable-msg=F0401