mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #26856: Fix the tests assuming that the pwd module has getpwall() and
assuming some invariants about uids that are not valid for Android.
This commit is contained in:
parent
3432f2f47c
commit
fb24eead48
2 changed files with 22 additions and 6 deletions
|
@ -2080,6 +2080,8 @@ class PosixPathTest(_BasePathTest, unittest.TestCase):
|
|||
self.assertEqual(given, expect)
|
||||
self.assertEqual(set(p.rglob("FILEd*")), set())
|
||||
|
||||
@unittest.skipUnless(hasattr(pwd, 'getpwall'),
|
||||
'pwd module does not expose getpwall()')
|
||||
def test_expanduser(self):
|
||||
P = self.cls
|
||||
support.import_module('pwd')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue