]> granicus.if.org Git - python/commitdiff
Fix SF bug #456386: test_commands regression failure (Andrew Dalke)
authorGuido van Rossum <guido@python.org>
Tue, 30 Oct 2001 03:17:30 +0000 (03:17 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Oct 2001 03:17:30 +0000 (03:17 +0000)
    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.

Lib/test/test_commands.py

index 77372c52433770382a3e0f1af206cae71b1d0f36..1cd8b8b59cfd86fe1e275eac4b9ed11fb6b7d25a 100644 (file)
@@ -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.