LEFT | RIGHT |
1 # -*- coding: iso-8859-1 -*- | 1 # -*- coding: iso-8859-1 -*- |
2 import unittest, test.support | 2 import unittest, test.support |
3 import sys, io, os | 3 import sys, io, os |
4 import struct | 4 import struct |
5 | 5 |
6 class SysModuleTest(unittest.TestCase): | 6 class SysModuleTest(unittest.TestCase): |
7 | 7 |
8 def setUp(self): | 8 def setUp(self): |
9 self.orig_stdout = sys.stdout | 9 self.orig_stdout = sys.stdout |
10 self.orig_stderr = sys.stderr | 10 self.orig_stderr = sys.stderr |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 old = sys.getfilesystemencoding() | 682 old = sys.getfilesystemencoding() |
683 sys.setfilesystemencoding("iso-8859-1") | 683 sys.setfilesystemencoding("iso-8859-1") |
684 self.assertEqual(sys.getfilesystemencoding(), "iso-8859-1") | 684 self.assertEqual(sys.getfilesystemencoding(), "iso-8859-1") |
685 sys.setfilesystemencoding(old) | 685 sys.setfilesystemencoding(old) |
686 | 686 |
687 def test_main(): | 687 def test_main(): |
688 test.support.run_unittest(SysModuleTest, SizeofTest) | 688 test.support.run_unittest(SysModuleTest, SizeofTest) |
689 | 689 |
690 if __name__ == "__main__": | 690 if __name__ == "__main__": |
691 test_main() | 691 test_main() |
LEFT | RIGHT |