diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-25 00:30:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-25 00:30:28 (GMT) |
commit | 120c21227af4e54ec181da8fce6ae21b414aa2d0 (patch) | |
tree | db310baf83e83a53241bcce9eca19b9d4ed336e8 /Lib/test/test_sys.py | |
parent | cd4ec0e2734a4f59ba97a79cf54c2c161167b96f (diff) | |
download | cpython-120c21227af4e54ec181da8fce6ae21b414aa2d0.zip cpython-120c21227af4e54ec181da8fce6ae21b414aa2d0.tar.gz cpython-120c21227af4e54ec181da8fce6ae21b414aa2d0.tar.bz2 |
Issue #8226: sys.setfilesystemencoding() raises a LookupError if the encoding
is unknown.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index eb7d1a4..23ec399 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -799,6 +799,7 @@ class SizeofTest(unittest.TestCase): old = sys.getfilesystemencoding() sys.setfilesystemencoding("iso-8859-1") self.assertEqual(sys.getfilesystemencoding(), "iso-8859-1") + self.assertRaises(LookupError, sys.setfilesystemencoding, "xxx") sys.setfilesystemencoding(old) def test_main(): |