summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-25 00:30:28 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-25 00:30:28 (GMT)
commit120c21227af4e54ec181da8fce6ae21b414aa2d0 (patch)
treedb310baf83e83a53241bcce9eca19b9d4ed336e8 /Lib
parentcd4ec0e2734a4f59ba97a79cf54c2c161167b96f (diff)
downloadcpython-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')
-rw-r--r--Lib/test/test_sys.py1
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():