diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 13:02:31 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 13:30:39 -0400 |
commit | 9df434550a499c16e9fd26cfb9627837bfdc02a5 (patch) | |
tree | 5619ea3c3bec05d04363a66ced9c7ebffcefb1df /tests/test_phystokens.py | |
parent | 3fe17c1f2244c07cf9d0f9e3609392c2ad441db1 (diff) | |
download | python-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.py | 5 |
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 = [ |