kadler / cpython

The Python programming language
https://www.python.org/
Other
2 stars 2 forks source link

Test failures in test_archive_util #34

Open kadler opened 3 years ago

kadler commented 3 years ago
======================================================================
ERROR: test_make_archive_owner_group (distutils.tests.test_archive_util.ArchiveUtilTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/distutils/tests/test_archive_util.py", line 340, in test_make_archive_owner_group
    group = grp.getgrgid(0)[0]
KeyError: 'getgrgid(): gid not found: 0'

======================================================================
ERROR: test_tarfile_root_owner (distutils.tests.test_archive_util.ArchiveUtilTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/distutils/tests/test_archive_util.py", line 370, in test_tarfile_root_owner
    group = grp.getgrgid(0)[0]
KeyError: 'getgrgid(): gid not found: 0'

======================================================================
ERROR: test_make_distribution_owner_group (distutils.tests.test_sdist.SDistTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/distutils/tests/test_sdist.py", line 453, in test_make_distribution_owner_group
    cmd.group = grp.getgrgid(0)[0]
KeyError: 'getgrgid(): gid not found: 0'

======================================================================
FAIL: test_mkpath_with_custom_mode (distutils.tests.test_dir_util.DirUtilTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/distutils/tests/test_dir_util.py", line 63, in test_mkpath_with_custom_mode
    self.assertEqual(
AssertionError: 1472 != 448

Like in #15, there is no gid 0. For the mode test, 1472 and 448 are 0o2700 and 0o700, respectively. 0o2000 is the setgid bit, which is set by default on / on IBM i and gets inherited by any subdirectories.