]> granicus.if.org Git - python/commitdiff
Patch #551911: Escape . properly.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 6 Jun 2002 09:52:49 +0000 (09:52 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 6 Jun 2002 09:52:49 +0000 (09:52 +0000)
Lib/test/test_commands.py

index aadd419a8a6bc4f233d4a0b99c7eb1b64cf5d866..cf87fd457aae24d28c7ea9284d0c02bf6b9c2ce8 100644 (file)
@@ -38,7 +38,7 @@ class CommandTests(unittest.TestCase):
                                #     be named anything.
                   \s+\d+       # It has a size.
                   [^/]*        # Skip the date.
-                  /          # and end with the name of the file.
+                  /\.          # and end with the name of the file.
                '''
 
         self.assert_(re.match(pat, getstatus("/."), re.VERBOSE))