diff options
author | Guido van Rossum <guido@python.org> | 2001-10-30 03:17:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-30 03:17:30 (GMT) |
commit | fa699126b5e1c649365aacbedb17a1b69e69bb49 (patch) | |
tree | 72f72bbc02b411ccbc60e0f15e8cf07e8d62a494 /Lib/test/test_commands.py | |
parent | 692adf19cb77ca992167936ce4d8a68f4afacc1c (diff) | |
download | cpython-fa699126b5e1c649365aacbedb17a1b69e69bb49.zip cpython-fa699126b5e1c649365aacbedb17a1b69e69bb49.tar.gz cpython-fa699126b5e1c649365aacbedb17a1b69e69bb49.tar.bz2 |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py index 77372c5..1cd8b8b 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. |