Kaydet (Commit) a5076a25 authored tarafından Tarek Ziadé's avatar Tarek Ziadé

Fixed #7408: dropped group ownership checking because it relies on os-specific rules

üst c4ab8339
...@@ -336,10 +336,13 @@ class SDistTestCase(PyPIRCCommandTestCase): ...@@ -336,10 +336,13 @@ class SDistTestCase(PyPIRCCommandTestCase):
# making sure we have the good rights # making sure we have the good rights
archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz') archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz')
archive = tarfile.open(archive_name) archive = tarfile.open(archive_name)
# note that we are not testing the group ownership here
# because, depending on the platforms and the container
# rights (see #7408)
try: try:
for member in archive.getmembers(): for member in archive.getmembers():
self.assertEquals(member.uid, os.getuid()) self.assertEquals(member.uid, os.getuid())
self.assertEquals(member.gid, os.getgid())
finally: finally:
archive.close() archive.close()
......
...@@ -487,6 +487,10 @@ Core and Builtins ...@@ -487,6 +487,10 @@ Core and Builtins
Library Library
------- -------
- Issue #7408: Fixed distutils.tests.sdist so it doesn't check for group
ownership when the group is not forced, because the group may be different
from the user's group and inherit from its container when the test is run.
- Issue #1515: Enable use of deepcopy() with instance methods. Patch by - Issue #1515: Enable use of deepcopy() with instance methods. Patch by
Robert Collins. Robert Collins.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment