diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-11-07 20:01:56 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-11-07 20:01:56 (GMT) |
commit | d6eb3523f624563bcec9fb97401c9f7b646d7e15 (patch) | |
tree | 7aa6ce478ef89a8f77bff6e98e8faf2a449b49ec /Lib/test/test_pep277.py | |
parent | cd246992567ac55dadb3503467a73f70ef30a04a (diff) | |
download | cpython-d6eb3523f624563bcec9fb97401c9f7b646d7e15.zip cpython-d6eb3523f624563bcec9fb97401c9f7b646d7e15.tar.gz cpython-d6eb3523f624563bcec9fb97401c9f7b646d7e15.tar.bz2 |
Stop printing listdir bytestring output, as the precise list of strings
returned depends on the filesystem encoding.
Diffstat (limited to 'Lib/test/test_pep277.py')
-rw-r--r-- | Lib/test/test_pep277.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index b48317f..f307089 100644 --- a/Lib/test/test_pep277.py +++ b/Lib/test/test_pep277.py @@ -78,11 +78,11 @@ class UnicodeFileTests(unittest.TestCase): def test_listdir(self): f1 = os.listdir(test_support.TESTFN) - f1.sort() + # Printing f1 is not appropriate, as specific filenames + # returned depend on the local encoding f2 = os.listdir(unicode(test_support.TESTFN, sys.getfilesystemencoding())) f2.sort() - print f1 print f2 def test_rename(self): |