summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_util.py
diff options
context:
space:
mode:
authorPablo Galindo <pablogsal@gmail.com>2022-03-07 18:18:37 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2022-03-07 18:18:37 (GMT)
commitc1069a46752d81504d9a3c106ca320cc991c659d (patch)
treeb6b967606aa21f2d508f6839c669a0307898e26f /Lib/distutils/tests/test_util.py
parentc7c4f8e27fc3faa704d184e0623836a5de1efa50 (diff)
parentb465b606049f6f7dd0711cb031fdaa251818741a (diff)
downloadcpython-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.py5
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,