diff options
author | Pablo Galindo <pablogsal@gmail.com> | 2022-03-07 18:18:37 (GMT) |
---|---|---|
committer | Pablo Galindo <pablogsal@gmail.com> | 2022-03-07 18:18:37 (GMT) |
commit | c1069a46752d81504d9a3c106ca320cc991c659d (patch) | |
tree | b6b967606aa21f2d508f6839c669a0307898e26f /Lib/distutils/tests/test_util.py | |
parent | c7c4f8e27fc3faa704d184e0623836a5de1efa50 (diff) | |
parent | b465b606049f6f7dd0711cb031fdaa251818741a (diff) | |
download | cpython-c1069a46752d81504d9a3c106ca320cc991c659d.zip cpython-c1069a46752d81504d9a3c106ca320cc991c659d.tar.gz cpython-c1069a46752d81504d9a3c106ca320cc991c659d.tar.bz2 |
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'Lib/distutils/tests/test_util.py')
-rw-r--r-- | Lib/distutils/tests/test_util.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py index 812d44e..f9c223f 100644 --- a/Lib/distutils/tests/test_util.py +++ b/Lib/distutils/tests/test_util.py @@ -248,7 +248,10 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase): util._environ_checked = 0 os.environ.pop('HOME', None) - import pwd + try: + import pwd + except ImportError: + raise unittest.SkipTest("Test requires pwd module.") # only set pw_dir field, other fields are not used result = pwd.struct_passwd((None, None, None, None, None, |