mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #3187: Add sys.setfilesystemencoding.
This commit is contained in:
parent
efb14a8857
commit
04dc25c537
6 changed files with 58 additions and 4 deletions
|
@ -658,6 +658,11 @@ class SizeofTest(unittest.TestCase):
|
|||
# sys.flags
|
||||
check(sys.flags, size(vh) + self.P * len(sys.flags))
|
||||
|
||||
def test_setfilesystemencoding(self):
|
||||
old = sys.getfilesystemencoding()
|
||||
sys.setfilesystemencoding("iso-8859-1")
|
||||
self.assertEqual(sys.getfilesystemencoding(), "iso-8859-1")
|
||||
sys.setfilesystemencoding(old)
|
||||
|
||||
def test_main():
|
||||
test.support.run_unittest(SysModuleTest, SizeofTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue