mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
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.
This commit is contained in:
parent
692adf19cb
commit
fa699126b5
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue