summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index f03fcbef1b..713d27908e 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1486,6 +1486,9 @@ class _BasePathTest(object):
self.assertIs(type(p), type(q))
self.assertTrue(p.is_absolute())
+ @unittest.skipIf(
+ pwd is None, reason="Test requires pwd module to get homedir."
+ )
def test_home(self):
with os_helper.EnvironmentVarGuard() as env:
self._test_home(self.cls.home())