File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,29 @@ def test_platform_things(self):
238
238
self .assertEqual (platform .system (), "Windows" )
239
239
self .assertTrue (isinstance (sys .api_version , int ) and sys .api_version > 0 )
240
240
241
+ def test_sys_getpath (self ):
242
+ # everything sourced from getpath.py
243
+ import sys
244
+
245
+ def assertNormpath (path ):
246
+ self .assertEqual (path , os .path .normpath (path ))
247
+
248
+ assertNormpath (sys .executable )
249
+ assertNormpath (sys ._base_executable )
250
+ assertNormpath (sys .prefix )
251
+ assertNormpath (sys .base_prefix )
252
+ assertNormpath (sys .exec_prefix )
253
+ assertNormpath (sys .base_exec_prefix )
254
+ assertNormpath (sys .platlibdir )
255
+ assertNormpath (sys ._stdlib_dir )
256
+ for p in sys .path :
257
+ assertNormpath (p )
258
+
259
+ def test_site (self ):
260
+ import site
261
+
262
+ self .assertEqual (len (site .getsitepackages ()), 1 )
263
+
241
264
def test_c_ext_build (self ):
242
265
import tempfile
243
266
import sys
You can’t perform that action at this time.
0 commit comments