diff -up Lib/test/test_commands.py.bug_11946 Lib/test/test_commands.py --- Lib/test/test_commands.py.bug_11946 2010-11-21 13:34:58.000000000 +0000 +++ Lib/test/test_commands.py 2011-04-28 18:03:27.000000000 +0100 @@ -49,11 +49,7 @@ class CommandTests(unittest.TestCase): # drwxr-xr-x 15 Joe User My Group 4096 Aug 12 12:50 / # 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. + pat = r'''^.*(\/\.)[\ ]*[\n\r]*$ ''' with check_warnings((".*commands.getstatus.. is deprecated",