File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3212,14 +3212,15 @@ def test_touch_mode(self):
32123212 st = os .stat (self .parser .join (self .base , 'masked_new_file' ))
32133213 self .assertEqual (stat .S_IMODE (st .st_mode ), 0o750 )
32143214
3215- @unittest .skipUnless (pwd , "the pwd module is needed for this test" )
32163215 @unittest .skipUnless (hasattr (pwd , 'getpwall' ),
32173216 'pwd module does not expose getpwall()' )
32183217 @unittest .skipIf (sys .platform == "vxworks" ,
32193218 "no home directory on VxWorks" )
32203219 @needs_posix
32213220 def test_expanduser_posix (self ):
32223221 P = self .cls
3222+ import_helper .import_module ('pwd' )
3223+ import pwd
32233224 pwdent = pwd .getpwuid (os .getuid ())
32243225 username = pwdent .pw_name
32253226 userhome = pwdent .pw_dir .rstrip ('/' ) or '/'
You can’t perform that action at this time.
0 commit comments