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:
Xavier de Gaye 2016-12-13 09:11:38 +01:00
parent 3432f2f47c
commit fb24eead48
2 changed files with 22 additions and 6 deletions

View file

@ -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')