[Python-checkins] r83420 - python/branches/release26-maint/Lib/test/test_posix.py

ronald.oussoren python-checkins at python.org
Sun Aug 1 20:46:05 CEST 2010


Author: ronald.oussoren
Date: Sun Aug  1 20:46:05 2010
New Revision: 83420

Log:
A raise of unittest.SkipTest leaked through in the backport for issue7900,
and that causes test failes on some platforms.


Modified:
   python/branches/release26-maint/Lib/test/test_posix.py

Modified: python/branches/release26-maint/Lib/test/test_posix.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_posix.py	(original)
+++ python/branches/release26-maint/Lib/test/test_posix.py	Sun Aug  1 20:46:05 2010
@@ -308,11 +308,12 @@
                 shutil.rmtree(base_path)
 
     def test_getgroups(self):
-        with os.popen('id -G') as idg:
+        with os.popen('id -G 2>/dev/null') as idg:
             groups = idg.read().strip()
 
         if not groups:
-            raise unittest.SkipTest("need working 'id -G'")
+            # This test needs 'id -G'
+            return
 
         # The order of groups isn't important, hence the calls
         # to sorted.


More information about the Python-checkins mailing list