summaryrefslogtreecommitdiff
path: root/tests/test_farm.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_farm.py
parent637851fcc659b92ad493c3edc87f9f2fc9b1c313 (diff)
downloadpython-coveragepy-git-1bbfe7e938d0250a1bb777492f617e95349abc5d.tar.gz
Make version checking more uniform
Diffstat (limited to 'tests/test_farm.py')
-rw-r--r--tests/test_farm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py
index 83681260..4fc0ea5a 100644
--- a/tests/test_farm.py
+++ b/tests/test_farm.py
@@ -36,7 +36,7 @@ def test_farm(filename):
# "rU" was deprecated in 3.4
-READ_MODE = "rU" if sys.version_info < (3, 4) else "r"
+READ_MODE = "rU" if env.PYVERSION < (3, 4) else "r"
class FarmTestCase(ModuleAwareMixin, SysPathAwareMixin, unittest.TestCase):