kadler / cpython

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

Test failures in test_shutil #15

Open kadler opened 3 years ago

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

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

======================================================================
ERROR: test_chown (test.test_shutil.TestMisc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_shutil.py", line 1628, in test_chown
    group = grp.getgrgid(gid)[0]
KeyError: 'getgrgid(): gid not found: 0'

There is no gid 0 on IBM i and there's no groups shipped out of the box, so these tests need to be either disabled or we need to have instructions to create a group ahead of time for the test to use.