Stop printing listdir bytestring output, as the precise list of strings
returned depends on the filesystem encoding.
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 @@
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):