Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6d68cf

Browse files
miss-islingtonmhsmithfreakboy3742
authored
[3.13] gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521) (GH-122530)
(cherry picked from commit 8844197) Co-authored-by: Malcolm Smith <[email protected]> Co-authored-by: Russell Keith-Magee <[email protected]>
1 parent 59d0d33 commit d6d68cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_posixpath.py

Lines changed: 2 additions & 2 deletions
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)