File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from platform import win32_is_iot
1212from test .support import os_helper
1313
14+
1415@unittest .skipIf (sys .platform == "win32" , "Posix specific tests" )
1516class Pep383Tests (unittest .TestCase ):
1617 def setUp (self ):
@@ -85,6 +86,7 @@ def test_stat(self):
8586 for fn in self .unicodefn :
8687 os .stat (os .path .join (self .dir , fn ))
8788
89+
8890class FSEncodingTests (unittest .TestCase ):
8991 def test_nop (self ):
9092 self .assertEqual (os .fsencode (b'abc\xff ' ), b'abc\xff ' )
@@ -100,7 +102,6 @@ def test_identity(self):
100102 self .assertEqual (os .fsdecode (bytesfn ), fn )
101103
102104
103-
104105class DeviceEncodingTests (unittest .TestCase ):
105106
106107 def test_bad_fd (self ):
@@ -111,7 +112,7 @@ def test_bad_fd(self):
111112 (hasattr (locale , 'nl_langinfo' ) and hasattr (locale , 'CODESET' ))),
112113 'test requires a tty and either Windows or nl_langinfo(CODESET)' )
113114 def test_device_encoding (self ):
114- encoding = os .device_encoding (0 )
115+ ncoding = os .device_encoding (0 )
115116 self .assertIsNotNone (encoding )
116117 self .assertTrue (codecs .lookup (encoding ))
117118
You can’t perform that action at this time.
0 commit comments