]> granicus.if.org Git - python/commitdiff
Patch #648998: test_commands ACL patch
authorJason Tishler <jason@tishler.net>
Thu, 5 Dec 2002 20:18:39 +0000 (20:18 +0000)
committerJason Tishler <jason@tishler.net>
Thu, 5 Dec 2002 20:18:39 +0000 (20:18 +0000)
Although motived by Cygwin, this patch will prevent
test_commands from failing on Unixes that support
ACLs. For example, the following is an excerpt from
the Solaris ls manpage:

...
-rwxrwxrwx+ 1 smith dev 10876 May 16 9:42 part2

The plus sign indicates that there is an ACL associated
with the file.
...

Lib/test/test_commands.py

index dfa1977266d795d7594ef1548ced138a7038d80e..ef87d79240f757fa562ed15064feee75754b758c 100644 (file)
@@ -45,6 +45,7 @@ class CommandTests(unittest.TestCase):
         # Note that the first case above has a space in the group name
         # while the second one has a space in both names.
         pat = r'''d.........   # It is a directory.
+                  \+?          # It may have ACLs.
                   \s+\d+       # It has some number of links.
                   [^/]*        # Skip user, group, size, and date.
                   /\.          # and end with the name of the file.