mirror of
https://github.com/python/cpython.git
synced 2024-12-12 11:23:56 +08:00
test_imp: getfilesystemencoding() cannot be None anymore
And the codec name is normalized.
This commit is contained in:
parent
16004ace5b
commit
15d597a245
@ -87,7 +87,6 @@ class ImportTests(unittest.TestCase):
|
|||||||
|
|
||||||
# the return encoding could be uppercase or None
|
# the return encoding could be uppercase or None
|
||||||
fs_encoding = sys.getfilesystemencoding()
|
fs_encoding = sys.getfilesystemencoding()
|
||||||
fs_encoding = fs_encoding.lower() if fs_encoding else 'ascii'
|
|
||||||
|
|
||||||
# covers utf-8 and Windows ANSI code pages
|
# covers utf-8 and Windows ANSI code pages
|
||||||
# one non-space symbol from every page
|
# one non-space symbol from every page
|
||||||
|
Loading…
Reference in New Issue
Block a user