• Victor Stinner's avatar
    Fix my test introduced in test_sys by r79394: · 4ce881e9
    Victor Stinner yazdı
    Restore the orginal filesystem encoding before testing
    assertRaises(LookupError, sys.setfilesystemencoding, "xxx"). Unittest formats
    the exception, but the formatting failed because the file system was invalid
    (set to iso-8859-1 by the previous test).
    
    Anyway, ensure to restore the original filesystem encoding when exiting
    test_setfilesystemencoding() to avoid error propagation to the other tests.
    4ce881e9
test_sys.py 29 KB