There was an error while loading. Please reload this page.
1 parent bd3d31f commit 8844197Copy full SHA for 8844197
1 file changed
Lib/test/test_posixpath.py
@@ -5,7 +5,7 @@
5
import unittest
6
from posixpath import realpath, abspath, dirname, basename
7
from test import test_genericpath
8
-from test.support import import_helper
+from test.support import get_attribute, import_helper
9
from test.support import cpython_only, os_helper
10
from test.support.os_helper import FakePath
11
from unittest import mock
@@ -359,7 +359,7 @@ def test_expanduser_pwd(self):
359
"no home directory on VxWorks")
360
def test_expanduser_pwd2(self):
361
pwd = import_helper.import_module('pwd')
362
- for all_entry in pwd.getpwall():
+ for all_entry in get_attribute(pwd, 'getpwall')():
363
name = all_entry.pw_name
364
365
# gh-121200: pw_dir can be different between getpwall() and
0 commit comments