Skip to content

Commit 8844197

Browse files
authored
gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521)
1 parent bd3d31f commit 8844197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_posixpath.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import unittest
66
from posixpath import realpath, abspath, dirname, basename
77
from test import test_genericpath
8-
from test.support import import_helper
8+
from test.support import get_attribute, import_helper
99
from test.support import cpython_only, os_helper
1010
from test.support.os_helper import FakePath
1111
from unittest import mock
@@ -359,7 +359,7 @@ def test_expanduser_pwd(self):
359359
"no home directory on VxWorks")
360360
def test_expanduser_pwd2(self):
361361
pwd = import_helper.import_module('pwd')
362-
for all_entry in pwd.getpwall():
362+
for all_entry in get_attribute(pwd, 'getpwall')():
363363
name = all_entry.pw_name
364364

365365
# gh-121200: pw_dir can be different between getpwall() and

0 commit comments

Comments
 (0)