mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch #648998: test_commands ACL patch
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. ...
This commit is contained in:
parent
b0f89e05ad
commit
e257ec9ef7
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue