]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Aug 2024 10:37:03 +0000 (12:37 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Aug 2024 10:37:03 +0000 (13:37 +0300)
(cherry picked from commit 8844197daaeb3aa026cfe1cac6cf9d1b52c2540e)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Lib/test/test_posixpath.py

index fb714fd90ae2b36973396614ba79a66c7bbbd158..ca5cf42f8fcd7105e502e1746906a354be289f71 100644 (file)
@@ -5,7 +5,7 @@ import sys
 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
@@ -359,7 +359,7 @@ class PosixPathTest(unittest.TestCase):
                      "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