mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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. ........
This commit is contained in:
parent
2f927fc61b
commit
d8805b2bb8
3 changed files with 9 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue