From: Ezio Melotti Date: Fri, 5 Mar 2010 15:17:26 +0000 (+0000) Subject: sys.getdefaultencoding() can return None. X-Git-Tag: v3.2a1~1557 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06dbff3b1f16dc232df0190cfed4b3af81aecda3;p=thirdparty%2FPython%2Fcpython.git sys.getdefaultencoding() can return None. --- diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 3110ea9880a0..627e42f95040 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -86,6 +86,7 @@ class ImportTests(unittest.TestCase): # the return encoding can be uppercase fs_encoding = sys.getfilesystemencoding().lower() + fs_encoding = fs_encoding.lower() if fs_encoding else 'ascii' # covers utf-8 and Windows ANSI code pages # one non-space symbol from every page