components/python/python26/patches/Python26-34-test_posix.patch
author John Beck <John.Beck@Oracle.COM>
Mon, 24 Mar 2014 17:43:42 -0700
changeset 1788 7948c9c48347
permissions -rw-r--r--
18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1788
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
# This patch comes from upstream: http://bugs.python.org/issue10585
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
--- Python-2.6.8/Lib/test/test_posix.py.orig	2012-04-10 08:32:07.000000000 -0700
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
+++ Python-2.6.8/Lib/test/test_posix.py	2014-03-24 14:46:34.624941892 -0700
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
@@ -353,7 +353,7 @@
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
             def test_setgroups(self):
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
                 for groups in [[0], range(16)]:
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
                     posix.setgroups(groups)
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
-                    self.assertListEqual(groups, posix.getgroups())
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
+                    self.assertEqual(groups, posix.getgroups())
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
 
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
 
7948c9c48347 18418978 PosixGroupsTester fails during python 2.6 regress test due to ListEqual
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
 def test_main():