summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_sftp.py')
-rw-r--r--tests/test_sftp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 1d6048bb..6134d070 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -274,12 +274,12 @@ class TestSFTP(object):
@requireNonAsciiLocale()
def test_listdir_in_locale(self, sftp):
"""Test listdir under a locale that uses non-ascii text."""
- sftp.open(sftp.FOLDER + '/canard.txt', 'w').close()
+ sftp.open(sftp.FOLDER + "/canard.txt", "w").close()
try:
folder_contents = sftp.listdir(sftp.FOLDER)
- self.assertEqual(['canard.txt'], folder_contents)
+ self.assertEqual(["canard.txt"], folder_contents)
finally:
- sftp.remove(sftp.FOLDER + '/canard.txt')
+ sftp.remove(sftp.FOLDER + "/canard.txt")
def test_setstat(self, sftp):
"""
@@ -792,12 +792,12 @@ class TestSFTP(object):
finally:
sftp.remove("%s/nonutf8data" % sftp.FOLDER)
- @requireNonAsciiLocale('LC_TIME')
+ @requireNonAsciiLocale("LC_TIME")
def test_sftp_attributes_locale_time(self, sftp):
"""Test SFTPAttributes under a locale with non-ascii time strings."""
some_stat = os.stat(sftp.FOLDER)
- sftp_attributes = SFTPAttributes.from_stat(some_stat, u('a_directory'))
- self.assertTrue(b'a_directory' in sftp_attributes.asbytes())
+ sftp_attributes = SFTPAttributes.from_stat(some_stat, u("a_directory"))
+ self.assertTrue(b"a_directory" in sftp_attributes.asbytes())
def test_sftp_attributes_empty_str(self, sftp):
sftp_attributes = SFTPAttributes()