summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pep277.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-18 21:23:25 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-18 21:23:25 (GMT)
commit94908bbc1503df830d1d615e7b57744ae1b41079 (patch)
tree21569de8c7a5018cd83c3692c06544ba77de6f6c /Lib/test/test_pep277.py
parent56ab01b66aaee7495615beecd90438fe9ed99615 (diff)
downloadcpython-94908bbc1503df830d1d615e7b57744ae1b41079.zip
cpython-94908bbc1503df830d1d615e7b57744ae1b41079.tar.gz
cpython-94908bbc1503df830d1d615e7b57744ae1b41079.tar.bz2
Issue #8622: Add PYTHONFSENCODING environment variable to override the
filesystem encoding. initfsencoding() displays also a better error message if get_codeset() failed.
Diffstat (limited to 'Lib/test/test_pep277.py')
-rw-r--r--Lib/test/test_pep277.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py
index 60d99db..0699317 100644
--- a/Lib/test/test_pep277.py
+++ b/Lib/test/test_pep277.py
@@ -43,7 +43,7 @@ if sys.platform != 'darwin':
# Is it Unicode-friendly?
if not os.path.supports_unicode_filenames:
- fsencoding = sys.getfilesystemencoding() or sys.getdefaultencoding()
+ fsencoding = sys.getfilesystemencoding()
try:
for name in filenames:
name.encode(fsencoding)