diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-13 08:11:38 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-13 08:11:38 (GMT) |
commit | fb24eead481a00c9bb86c436461971790fce7937 (patch) | |
tree | 87bafc251bfe09ef6f0ba8d75e0fd1a8a8e5a535 /Lib/test/test_pathlib.py | |
parent | 3432f2f47c1d3d2e97f13d58aef1bc5a72a8976c (diff) | |
download | cpython-fb24eead481a00c9bb86c436461971790fce7937.zip cpython-fb24eead481a00c9bb86c436461971790fce7937.tar.gz cpython-fb24eead481a00c9bb86c436461971790fce7937.tar.bz2 |
Issue #26856: Fix the tests assuming that the pwd module has getpwall() and
assuming some invariants about uids that are not valid for Android.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index f98c1fe..d25b133 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -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') |