]> granicus.if.org Git - python/commit
Fix my test introduced in test_sys by r79394:
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 25 Mar 2010 12:24:38 +0000 (12:24 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 25 Mar 2010 12:24:38 +0000 (12:24 +0000)
commit4ce881e928fc2dfd15a4ffafcf59ed71e51f2d24
tree9c389ef6074766c1e40688cb9f489d3c49b60c72
parente777a68682ec1234962659db32b46b29b05adb3c
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.
Lib/test/test_sys.py