summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-06-13 07:57:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-06-13 07:57:18 -0400
commit1bbfe7e938d0250a1bb777492f617e95349abc5d (patch)
treea9aabf7bee2a67d4479e34a56e4efabb6bbfb1e2 /tests/test_process.py
parent637851fcc659b92ad493c3edc87f9f2fc9b1c313 (diff)
downloadpython-coveragepy-git-1bbfe7e938d0250a1bb777492f617e95349abc5d.tar.gz
Make version checking more uniform
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index f0b1cde1..7e55c77c 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -659,7 +659,7 @@ class ProcessTest(CoverageTest):
self.assertGreater(data.line_counts()['os.py'], 50)
def test_lang_c(self):
- if env.PY3 and sys.version_info < (3, 4):
+ if env.PY3 and env.PYVERSION < (3, 4):
# Python 3.3 can't compile the non-ascii characters in the file name.
self.skipTest("3.3 can't handle this test")
if env.JYTHON:
@@ -768,7 +768,7 @@ class EnvironmentTest(CoverageTest):
self.assert_tryexecfile_output(out_cov, out_py)
def test_coverage_run_dir_is_like_python_dir(self):
- if sys.version_info == (3, 5, 4, 'final', 0): # pragma: obscure
+ if env.PYVERSION == (3, 5, 4, 'final', 0): # pragma: obscure
self.skipTest("3.5.4 broke this: https://bugs.python.org/issue32551")
with open(TRY_EXECFILE) as f:
self.make_file("with_main/__main__.py", f.read())