diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-25 00:35:51 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-25 00:35:51 (GMT) |
commit | d8805b2bb8f5e25641153776c6a01c5653417ec9 (patch) | |
tree | 43cabe2b2863ce8cddc2c1707ac75a0e4fac0cf1 /Lib/test/test_sys.py | |
parent | 2f927fc61b56ba55548d71070bf73f3bb1d2b86a (diff) | |
download | cpython-d8805b2bb8f5e25641153776c6a01c5653417ec9.zip cpython-d8805b2bb8f5e25641153776c6a01c5653417ec9.tar.gz cpython-d8805b2bb8f5e25641153776c6a01c5653417ec9.tar.bz2 |
Merged revisions 79393 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r79393 | victor.stinner | 2010-03-25 01:30:28 +0100 (jeu., 25 mars 2010) | 3 lines
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 d7b9cd8..73ef6f5 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -758,6 +758,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(): |