]> granicus.if.org Git - python/commitdiff
test_imp: getfilesystemencoding() cannot be None anymore
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 16:59:46 +0000 (16:59 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 16:59:46 +0000 (16:59 +0000)
And the codec name is normalized.

Lib/test/test_imp.py

index eb9eaefb3f63243cc7f7d1e306b8bdf8bd5a92ce..c71a4c755346a0766e1d2f319621c78f2660e717 100644 (file)
@@ -87,7 +87,6 @@ class ImportTests(unittest.TestCase):
 
         # the return encoding could be uppercase or None
         fs_encoding = sys.getfilesystemencoding()
-        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