summaryrefslogtreecommitdiff
path: root/tests/test_file.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
commitec8948158e26df0ec549e333cc2ea4bb22d56350 (patch)
tree605531478922a9b56d867e8044387711f32b68d2 /tests/test_file.py
parent19a00412bfecd43d4fa6a13459955ccb13f29e02 (diff)
downloadparamiko-ec8948158e26df0ec549e333cc2ea4bb22d56350.tar.gz
blacken
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"))