summaryrefslogtreecommitdiff
path: root/Lib/test/test_commands.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-30 03:17:30 +0000
committerGuido van Rossum <guido@python.org>2001-10-30 03:17:30 +0000
commit8ca97a8f33d16d57818ed5708b27eb9f3f92488b (patch)
tree242a10c22fe7ac7cc1ebf7ed844f8e52d7f18c8d /Lib/test/test_commands.py
parent91b698bef4790430e10163b5d5db2f2d8deb80dd (diff)
downloadcpython-8ca97a8f33d16d57818ed5708b27eb9f3f92488b.tar.gz
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.
Diffstat (limited to 'Lib/test/test_commands.py')
-rw-r--r--Lib/test/test_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py
index 77372c5243..1cd8b8b59c 100644
--- a/Lib/test/test_commands.py
+++ b/Lib/test/test_commands.py
@@ -32,7 +32,7 @@ class CommandTests(unittest.TestCase):
def test_getstatus(self):
# This pattern should match 'ls -ld /bin/ls' on any posix
# system, however perversely configured.
- pat = r'''-..x..x..x # It is executable.
+ 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
# be named anything.