homepage

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 Jason.Vas.Dias
Recipients Jason.Vas.Dias, r.david.murray
Date 2011年04月28日.16:25:57
SpamBayes Score 0.00044214676
Marked as misclassified No
Message-id <1304007958.22.0.685699454512.issue11946@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011年04月28日 16:25:58Jason.Vas.Diassetrecipients: + Jason.Vas.Dias, r.david.murray
2011年04月28日 16:25:58Jason.Vas.Diassetmessageid: <1304007958.22.0.685699454512.issue11946@psf.upfronthosting.co.za>
2011年04月28日 16:25:57Jason.Vas.Diaslinkissue11946 messages
2011年04月28日 16:25:57Jason.Vas.Diascreate

AltStyle によって変換されたページ (->オリジナル) /