File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
from platform import win32_is_iot
12
12
from test .support import os_helper
13
13
14
+
14
15
@unittest .skipIf (sys .platform == "win32" , "Posix specific tests" )
15
16
class Pep383Tests (unittest .TestCase ):
16
17
def setUp (self ):
@@ -85,6 +86,7 @@ def test_stat(self):
85
86
for fn in self .unicodefn :
86
87
os .stat (os .path .join (self .dir , fn ))
87
88
89
+
88
90
class FSEncodingTests (unittest .TestCase ):
89
91
def test_nop (self ):
90
92
self .assertEqual (os .fsencode (b'abc\xff ' ), b'abc\xff ' )
@@ -100,7 +102,6 @@ def test_identity(self):
100
102
self .assertEqual (os .fsdecode (bytesfn ), fn )
101
103
102
104
103
-
104
105
class DeviceEncodingTests (unittest .TestCase ):
105
106
106
107
def test_bad_fd (self ):
@@ -111,7 +112,7 @@ def test_bad_fd(self):
111
112
(hasattr (locale , 'nl_langinfo' ) and hasattr (locale , 'CODESET' ))),
112
113
'test requires a tty and either Windows or nl_langinfo(CODESET)' )
113
114
def test_device_encoding (self ):
114
- encoding = os .device_encoding (0 )
115
+ ncoding = os .device_encoding (0 )
115
116
self .assertIsNotNone (encoding )
116
117
self .assertTrue (codecs .lookup (encoding ))
117
118
You can’t perform that action at this time.
0 commit comments