• Victor Stinner's avatar
    Improve PEP 383 tests (in test_os) · 0e4301f0
    Victor Stinner authored
     * Use the current filesystem encoding instead of always using utf-8
     * Enable the test on Mac OS X
     * Use TESTFN_UNENCODABLE and TESTFN_UNICODE instead of arbitrary filenames
     * To decode a filename, use strict error handler instead surrogateescape for
       mbcs encoding (on Windows)
     * Use TESTFN_UNENCODABLE (if available) for the directory name
    
    Skip the test if no non-ascii filename can be created.
    0e4301f0
test_os.py 42.9 KB