Skip to content

Commit

Permalink
pythongh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms…
Browse files Browse the repository at this point in the history
… which don't support pwd.getpwall (pythonGH-122521)

(cherry picked from commit 8844197)

Co-authored-by: Malcolm Smith <[email protected]>
  • Loading branch information
mhsmith authored and miss-islington committed Jul 31, 2024
1 parent 9c1c918 commit 2344188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import unittest
from posixpath import realpath, abspath, dirname, basename
from test import test_genericpath
from test.support import import_helper
from test.support import get_attribute, import_helper
from test.support import cpython_only, os_helper
from test.support.os_helper import FakePath
from unittest import mock
Expand Down Expand Up @@ -359,7 +359,7 @@ def test_expanduser_pwd(self):
"no home directory on VxWorks")
def test_expanduser_pwd2(self):
pwd = import_helper.import_module('pwd')
for all_entry in pwd.getpwall():
for all_entry in get_attribute(pwd, 'getpwall')():
name = all_entry.pw_name

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

0 comments on commit 2344188

Please sign in to comment.