mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
bpo-46933: Make pwd module optional (GH-31700)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
3b3be05a16
commit
ca9689f8da
11 changed files with 496 additions and 560 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue