summaryrefslogtreecommitdiff
path: root/tests/test_file.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_file.py')
-rw-r--r--tests/test_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_file.py b/tests/test_file.py
index b0147450..bcd1ad2b 100644
--- a/tests/test_file.py
+++ b/tests/test_file.py
@@ -189,7 +189,7 @@ class BufferedFileTest(unittest.TestCase):
self.assertRaises(TypeError, f.write, object())
def test_write_unicode_as_binary(self):
- text = u"\xa7 why is writing text to a binary file allowed?\n"
+ text = "\xa7 why is writing text to a binary file allowed?\n"
with LoopbackFile("rb+") as f:
f.write(text)
self.assertEqual(f.read(), text.encode("utf-8"))