[Python-checkins] CVS: python/dist/src/Lib/test test_commands.py,1.2,1.3
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年10月29日 19:17:32 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24869
Modified Files:
test_commands.py
Log Message:
Fix SF bug #456386: test_commands regression failure (Andrew Dalke)
test_commands does not work on IRIX
It assumes the output of "ls /bin/ls" is a line
that starts with a '-'. On IRIX that file is
a symbolic link, so the first character is an l.
This causes test_getstatus to fail.
Index: test_commands.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_commands.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_commands.py 2001年09月20日 21:33:42 1.2
--- test_commands.py 2001年10月30日 03:17:30 1.3
***************
*** 33,37 ****
# This pattern should match 'ls -ld /bin/ls' on any posix
# system, however perversely configured.
! pat = r'''-..x..x..x # It is executable.
\s+\d+ # It has some number of links.
\s+\w+\s+\w+ # It has a user and group, which may
--- 33,37 ----
# This pattern should match 'ls -ld /bin/ls' on any posix
# system, however perversely configured.
! pat = r'''[l-]..x..x..x # It is executable. (May be a symlink.)
\s+\d+ # It has some number of links.
\s+\w+\s+\w+ # It has a user and group, which may