Skip to content

Commit 2d6b2d5

Browse files
committed
remove unrelated changes
1 parent 001f6db commit 2d6b2d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_pathlib/test_pathlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 '/'

0 commit comments

Comments
 (0)