diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
commit | d18c4a8ca50361893eaa7ba86821a136ba7a4807 (patch) | |
tree | d5b682a46e9b44a6edd6e12771ffc831503cb594 /test/test_cmdline.py | |
parent | cfdd8b9c6c9a0fc0bb0d332dd034330a37ea5a1f (diff) | |
download | python-coveragepy-d18c4a8ca50361893eaa7ba86821a136ba7a4807.tar.gz |
The best way to get py3k support: same source runs on both, with some contortions.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index f06e915..0c26210 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -1,8 +1,10 @@ """Test cmdline.py for coverage.""" -import re, shlex, textwrap, unittest +import os, re, shlex, sys, textwrap, unittest import mock import coverage + +sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k from coveragetest import CoverageTest |