commit | 4ce881e928fc2dfd15a4ffafcf59ed71e51f2d24 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 25 12:24:38 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 25 12:24:38 2010 +0000 |
tree | 9c389ef6074766c1e40688cb9f489d3c49b60c72 | |
parent | e777a68682ec1234962659db32b46b29b05adb3c [diff] |
Fix my test introduced in test_sys by r79394: 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.