summaryrefslogtreecommitdiff
path: root/testing/test_pytester.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-06-04 17:48:06 -0700
committerAnthony Sottile <asottile@umich.edu>2019-06-04 17:50:34 -0700
commitbe2be040f95f7f47ea3fbb74ce12f5af4d483b97 (patch)
tree7af9393d46117cff81e48bb857ce25c50316d2fa /testing/test_pytester.py
parent0f4992c223bbf4757e83c20818538eb755604734 (diff)
downloadpytest-be2be040f95f7f47ea3fbb74ce12f5af4d483b97.tar.gz
Clean up u' prefixes and py2 bytes conversions
Diffstat (limited to 'testing/test_pytester.py')
-rw-r--r--testing/test_pytester.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/testing/test_pytester.py b/testing/test_pytester.py
index 82ff37c13..96bf85040 100644
--- a/testing/test_pytester.py
+++ b/testing/test_pytester.py
@@ -201,12 +201,10 @@ def test_makepyfile_utf8(testdir):
"""Ensure makepyfile accepts utf-8 bytes as input (#2738)"""
utf8_contents = """
def setup_function(function):
- mixed_encoding = u'São Paulo'
- """.encode(
- "utf-8"
- )
+ mixed_encoding = 'São Paulo'
+ """.encode()
p = testdir.makepyfile(utf8_contents)
- assert "mixed_encoding = u'São Paulo'".encode() in p.read("rb")
+ assert "mixed_encoding = 'São Paulo'".encode() in p.read("rb")
class TestInlineRunModulesCleanup: