This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients dmalcolm
Date 2010-11-29.23:27:18
SpamBayes Score 5.413047e-05
Marked as misclassified No
Message-id <1291073241.08.0.380163475863.issue10585@psf.upfronthosting.co.za>
In-reply-to
Content
2.6.6 has an erronenous use of a unittest method that was added in 2.7, but it's only seen when running as root.  More specificially, with this guard:
    if posix.getuid() == 0 and hasattr(posix, 'getgroups') and sys.platform != 'darwin':

[david@surprise 2.6-clean]$ sudo ./python -m test.test_posix
   (snip)
======================================================================
ERROR: test_setgroups (__main__.PosixGroupsTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/test/test_posix.py", line 356, in test_setgroups
    self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

----------------------------------------------------------------------
Ran 29 tests in 0.020s

FAILED (errors=1)

Seems to have come from r83126.  Fix would seem to be to replace the assertListEqual with AssertEqual.  Am attaching a patch.
History
Date User Action Args
2010-11-29 23:27:21dmalcolmsetrecipients: + dmalcolm
2010-11-29 23:27:21dmalcolmsetmessageid: <1291073241.08.0.380163475863.issue10585@psf.upfronthosting.co.za>
2010-11-29 23:27:18dmalcolmlinkissue10585 messages
2010-11-29 23:27:18dmalcolmcreate