Jason Vas Dias <[email protected]> added the comment:
Seeing the source , I see some complicated RE - should this test
maybe be better off in the RE testing module ?
I'd have used a simple RE like '^.*(\/.*)$' .
Might my newly built & installed pcre-8.02 be a suspect here ?
Here is an strace of the installed python 2.7 (not 2.7.1!)
failing with test_commands.py :
$ strace -s8192 -f -e trace=execve python
/usr/src/Python-2.7.1/Lib/test/test_commands.py
execve("/usr/bin/python", ["python",
"/usr/src/Python-2.7.1/Lib/test/test_commands.py"], [/* 23 vars */]) = 0
test_getoutput (__main__.CommandTests) ... syscall_293(0x7fffa0d6a400, 0x80000,
0x7f4029a834dd, 0x7fffa0d6a200, 0x7f4029abf700, 0x100, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
Process 30803 attached
[pid 30803] execve("/bin/sh", ["sh", "-c", "{ echo xyzzy; } 2>&1"], [/* 23 vars
*/]) = 0
Process 30803 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
syscall_293(0x7fffa0d6a550, 0x80000, 0x7f4029a834dd, 0, 0x7f4029abf700, 0x100,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) =
0
Process 30804 attached
[pid 30804] execve("/bin/sh", ["sh", "-c", "{ echo xyzzy; } 2>&1"], [/* 23 vars
*/]) = 0
Process 30804 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
syscall_293(0x7fffa0d6a550, 0x80000, 0x7f4029a834dd, 0, 0x7f4029abf700, 0x100,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) =
0
Process 30805 attached
[pid 30805] execve("/bin/sh", ["sh", "-c", "{ cat /tmp/tmpZ2sqbO/foo; } 2>&1"],
[/* 23 vars */]) = 0
Process 30806 attached
[pid 30806] execve("/bin/cat", ["cat", "/tmp/tmpZ2sqbO/foo"], [/* 21 vars */])
= 0
Process 30805 suspended
Process 30805 resumed
Process 30806 detached
[pid 30805] --- SIGCHLD (Child exited) @ 0 (0) ---
Process 30805 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
ok
test_getstatus (__main__.CommandTests) ... syscall_293(0x7fffa0d6a2b0, 0x80000,
0x7f4029a834dd, 0, 0x7f4029abf700, 0x100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
Process 30807 attached
[pid 30807] execve("/bin/sh", ["sh", "-c", "{ ls -ld \'/.\'; } 2>&1"], [/* 23
vars */]) = 0
Process 30808 attached
Process 30807 suspended
[pid 30808] execve("/bin/ls", ["ls", "-ld", "/."], [/* 21 vars */]) = 0
Process 30807 resumed
Process 30808 detached
[pid 30807] --- SIGCHLD (Child exited) @ 0 (0) ---
Process 30807 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
FAIL
======================================================================
FAIL: test_getstatus (__main__.CommandTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/src/Python-2.7.1/Lib/test/test_commands.py", line 61, in
test_getstatus
self.assertTrue(re.match(pat, commands.getstatus("/."), re.VERBOSE))
AssertionError: None is not True
----------------------------------------------------------------------
Ran 2 tests in 0.202s
FAILED (failures=1)
Traceback (most recent call last):
File "/usr/src/Python-2.7.1/Lib/test/test_commands.py", line 70, in <module>
test_main()
File "/usr/src/Python-2.7.1/Lib/test/test_commands.py", line 65, in test_main
run_unittest(CommandTests)
File "/usr/lib/python2.7/test/test_support.py", line 1055, in run_unittest
_run_suite(suite)
File "/usr/lib/python2.7/test/test_support.py", line 1038, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "/usr/src/Python-2.7.1/Lib/test/test_commands.py", line 61, in
test_getstatus
self.assertTrue(re.match(pat, commands.getstatus("/."), re.VERBOSE))
AssertionError: None is not True
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com