]> granicus.if.org Git - python/commitdiff
Fix duplicated test case for re. (GH-12662)
authorMakDon <379857334@qq.com>
Thu, 4 Apr 2019 10:38:42 +0000 (18:38 +0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 4 Apr 2019 10:38:42 +0000 (13:38 +0300)
Lib/test/re_tests.py

index a379d33aec61d193e563f59aa4e94eef6fd26887..5ba9f1652e18625e33e7dbd4dd31a3ff7e2d530d 100755 (executable)
@@ -109,7 +109,7 @@ tests = [
     ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'),
     ('(?s)a.*b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'),
     ('(?s)a.{4,5}b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'),
-    ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'),
+    ('(?s)a.b', 'a\rb', SUCCEED, 'found', 'a\rb'),
 
     (')', '', SYNTAX_ERROR),           # Unmatched right bracket
     ('', '', SUCCEED, 'found', ''),    # Empty pattern