Author Jason.Vas.Dias
Recipients Jason.Vas.Dias, r.david.murray
Date 2011-04-28.17:04:54
SpamBayes Score 3.42378e-05
Marked as misclassified No
Message-id <1304010295.12.0.714790591277.issue11946@psf.upfronthosting.co.za>
In-reply-to
Content
Aha ! Fixed ! : patch :

[ root@jvdspc:/mnt/sda3/Python-2.7 18:02:22 1685:1178 ]
$ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython2.7.so.1.0 ./python /tmp/test_commands.py
test_getoutput (__main__.CommandTests) ... ok
test_getstatus (__main__.CommandTests) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.068s

OK
[ root@jvdspc:/mnt/sda3/Python-2.7 18:03:34 1686:1179 ]
$ diff -U0 /usr/src/Python-2.7/Lib/test/test_commands.py /tmp/test_commands.py
--- /usr/src/Python-2.7/Lib/test/test_commands.py       2010-03-31 23:01:03.000000000 +0100
+++ /tmp/test_commands.py       2011-04-28 18:03:27.821395320 +0100
@@ -27,2 +27,2 @@
-        self.assertEquals(commands.getoutput('echo xyzzy'), 'xyzzy')
-        self.assertEquals(commands.getstatusoutput('echo xyzzy'), (0, 'xyzzy'))
+        self.assertEqual(commands.getoutput('echo xyzzy'), 'xyzzy')
+        self.assertEqual(commands.getstatusoutput('echo xyzzy'), (0, 'xyzzy'))
@@ -39 +39 @@
-            self.assertNotEquals(status, 0)
+            self.assertNotEqual(status, 0)
@@ -52,5 +52 @@
-        pat = r'''d.........   # It is a directory.
-                  \+?          # It may have ACLs.
-                  \s+\d+       # It has some number of links.
-                  [^/]*        # Skip user, group, size, and date.
-                  /\.          # and end with the name of the file.
+        pat = r'''^.*(\/\.)[\ ]*[\n\r]*$
History
Date User Action Args
2011-04-28 17:04:55Jason.Vas.Diassetrecipients: + Jason.Vas.Dias, r.david.murray
2011-04-28 17:04:55Jason.Vas.Diassetmessageid: <1304010295.12.0.714790591277.issue11946@psf.upfronthosting.co.za>
2011-04-28 17:04:54Jason.Vas.Diaslinkissue11946 messages
2011-04-28 17:04:54Jason.Vas.Diascreate