summaryrefslogtreecommitdiff
path: root/tests/test_phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-01 13:02:31 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-01 13:30:39 -0400
commit9df434550a499c16e9fd26cfb9627837bfdc02a5 (patch)
tree5619ea3c3bec05d04363a66ced9c7ebffcefb1df /tests/test_phystokens.py
parent3fe17c1f2244c07cf9d0f9e3609392c2ad441db1 (diff)
downloadpython-coveragepy-git-9df434550a499c16e9fd26cfb9627837bfdc02a5.tar.gz
refactor: remove code explicitly choosing between py2 and py3
Diffstat (limited to 'tests/test_phystokens.py')
-rw-r--r--tests/test_phystokens.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py
index 86b1fdbe..76b545e1 100644
--- a/tests/test_phystokens.py
+++ b/tests/test_phystokens.py
@@ -104,10 +104,7 @@ class PhysTokensTest(CoverageTest):
# The default encoding is different in Python 2 and Python 3.
-if env.PY3:
- DEF_ENCODING = "utf-8"
-else:
- DEF_ENCODING = "ascii"
+DEF_ENCODING = "utf-8"
ENCODING_DECLARATION_SOURCES = [