python / cpython

The Python programming language
https://www.python.org/
Other
60.91k stars 29.4k forks source link

test_unicode_file fails on MacOS9 #38123

Closed jackjansen closed 21 years ago

jackjansen commented 21 years ago
BPO 699386
Nosy @loewis, @jackjansen

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = 'https://github.com/loewis' closed_at = created_at = labels = ['OS-mac'] title = 'test_unicode_file fails on MacOS9' updated_at = user = 'https://github.com/jackjansen' ``` bugs.python.org fields: ```python activity = actor = 'loewis' assignee = 'loewis' closed = True closed_date = None closer = None components = ['macOS'] creation = creator = 'jackjansen' dependencies = [] files = [] hgrepos = [] issue_num = 699386 keywords = [] message_count = 2.0 messages = ['15018', '15019'] nosy_count = 2.0 nosy_names = ['loewis', 'jackjansen'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue699386' versions = [] ```

jackjansen commented 21 years ago

Since test_support.py rev. 1.49 test_unicode_file has started failing on MacOS9. It used to be skipped (there are no unicode filename semantics on this platform), but the 1.49 change always defines TESTFN_ENCODING. As sys.getfilesystemencoding() returns None on MacOS9 this makes test_unicode_file fail.

61337411-43fc-4a9c-b8d5-4060aede66d0 commented 21 years ago

Logged In: YES user_id=21627

I forgot to commit the patch to test_unicode_file. This should be fixed in 1.7.