|
| 1 | +test_re |
| 2 | +('abc', 'abc', 0, 'found', 'abc') |
| 3 | +('abc', 'xbc', 1) |
| 4 | +('abc', 'axc', 1) |
| 5 | +('abc', 'abx', 1) |
| 6 | +('abc', 'xabcy', 0, 'found', 'abc') |
| 7 | +('abc', 'ababc', 0, 'found', 'abc') |
| 8 | +('ab*c', 'abc', 0, 'found', 'abc') |
| 9 | +('ab*bc', 'abc', 0, 'found', 'abc') |
| 10 | +('ab*bc', 'abbc', 0, 'found', 'abbc') |
| 11 | +('ab*bc', 'abbbbc', 0, 'found', 'abbbbc') |
| 12 | +('ab+bc', 'abbc', 0, 'found', 'abbc') |
| 13 | +('ab+bc', 'abc', 1) |
| 14 | +('ab+bc', 'abq', 1) |
| 15 | +('ab+bc', 'abbbbc', 0, 'found', 'abbbbc') |
| 16 | +('ab?bc', 'abbc', 0, 'found', 'abbc') |
| 17 | +('ab?bc', 'abc', 0, 'found', 'abc') |
| 18 | +('ab?bc', 'abbbbc', 1) |
| 19 | +('ab?c', 'abc', 0, 'found', 'abc') |
| 20 | +('^abc$', 'abc', 0, 'found', 'abc') |
| 21 | +('^abc$', 'abcc', 1) |
| 22 | +('^abc', 'abcc', 0, 'found', 'abc') |
| 23 | +('^abc$', 'aabc', 1) |
| 24 | +('abc$', 'aabc', 0, 'found', 'abc') |
| 25 | +('^', 'abc', 0, 'found+"-"', '-') |
| 26 | +('$', 'abc', 0, 'found+"-"', '-') |
| 27 | +('a.c', 'abc', 0, 'found', 'abc') |
| 28 | +('a.c', 'axc', 0, 'found', 'axc') |
| 29 | +('a.*c', 'axyzc', 0, 'found', 'axyzc') |
| 30 | +('a.*c', 'axyzd', 1) |
| 31 | +('a[bc]d', 'abc', 1) |
| 32 | +('a[bc]d', 'abd', 0, 'found', 'abd') |
| 33 | +('a[b-d]e', 'abd', 1) |
| 34 | +('a[b-d]e', 'ace', 0, 'found', 'ace') |
| 35 | +('a[b-d]', 'aac', 0, 'found', 'ac') |
| 36 | +('a[-b]', 'a-', 0, 'found', 'a-') |
| 37 | +('a[b-]', 'a-', 2) |
| 38 | +('a[]b', '-', 2) |
| 39 | +*** Unexpected error *** |
| 40 | +Traceback (innermost last): |
| 41 | + File "../Lib/test/test_re.py", line 19, in ? |
| 42 | + obj=re.compile(pattern) |
| 43 | + File "../Lib/re.py", line 1078, in compile |
| 44 | + if pattern[index] != ']': |
| 45 | +IndexError: string index out of range |
| 46 | +('a[', '-', 2) |
| 47 | +('a\\', '-', 2) |
| 48 | +('abc)', '-', 2) |
| 49 | +('(abc', '-', 2) |
| 50 | +('a]', 'a]', 0, 'found', 'a]') |
| 51 | +('a[]]b', 'a]b', 0, 'found', 'a]b') |
| 52 | +('a[^bc]d', 'aed', 0, 'found', 'aed') |
| 53 | +('a[^bc]d', 'abd', 1) |
| 54 | +('a[^-b]c', 'adc', 0, 'found', 'adc') |
| 55 | +('a[^-b]c', 'a-c', 1) |
| 56 | +('a[^]b]c', 'a]c', 1) |
| 57 | +('a[^]b]c', 'adc', 0, 'found', 'adc') |
| 58 | +('\\ba\\b', 'a-', 0, '"-"', '-') |
| 59 | +=== Failed incorrectly ('\\ba\\b', 'a-', 0, '"-"', '-') |
| 60 | +('\\ba\\b', '-a', 0, '"-"', '-') |
| 61 | +=== Failed incorrectly ('\\ba\\b', '-a', 0, '"-"', '-') |
| 62 | +('\\ba\\b', '-a-', 0, '"-"', '-') |
| 63 | +=== Failed incorrectly ('\\ba\\b', '-a-', 0, '"-"', '-') |
| 64 | +('\\by\\b', 'xy', 1) |
| 65 | +('\\by\\b', 'yz', 1) |
| 66 | +('\\by\\b', 'xyz', 1) |
| 67 | +('ab|cd', 'abc', 0, 'found', 'ab') |
| 68 | +*** Unexpected error *** |
| 69 | +Traceback (innermost last): |
| 70 | + File "../Lib/test/test_re.py", line 19, in ? |
| 71 | + obj=re.compile(pattern) |
| 72 | + File "../Lib/re.py", line 1097, in compile |
| 73 | + if stack[-1][0].name == '(': |
| 74 | +AttributeError: attribute-less object |
| 75 | +('ab|cd', 'abcd', 0, 'found', 'ab') |
| 76 | +*** Unexpected error *** |
| 77 | +Traceback (innermost last): |
| 78 | + File "../Lib/test/test_re.py", line 19, in ? |
| 79 | + obj=re.compile(pattern) |
| 80 | + File "../Lib/re.py", line 1097, in compile |
| 81 | + if stack[-1][0].name == '(': |
| 82 | +AttributeError: attribute-less object |
| 83 | +('()ef', 'def', 0, 'found+"-"+g1', 'ef-') |
| 84 | +=== Syntax error: ('()ef', 'def', 0, 'found+"-"+g1', 'ef-') |
| 85 | +('$b', 'b', 1) |
| 86 | +('a(b', 'a(b', 0, 'found+"-"+g1', 'a(b-None') |
| 87 | +=== Syntax error: ('a(b', 'a(b', 0, 'found+"-"+g1', 'a(b-None') |
| 88 | +('a\\(*b', 'ab', 0, 'found', 'ab') |
| 89 | +('a\\(*b', 'a((b', 0, 'found', 'a((b') |
| 90 | +=== Failed incorrectly ('a\\(*b', 'a((b', 0, 'found', 'a((b') |
| 91 | +('a\\\\b', 'a\\b', 0, 'found', 'a\\b') |
| 92 | +=== Failed incorrectly ('a\\\\b', 'a\\b', 0, 'found', 'a\\b') |
| 93 | +('((a))', 'abc', 0, 'found+"-"+g1+"-"+g2', 'a-a-a') |
| 94 | +=== grouping error ('((a))', 'abc', 0, 'found+"-"+g1+"-"+g2', 'a-a-a') 'a--' should be 'a-a-a' |
| 95 | +('(a)b(c)', 'abc', 0, 'found+"-"+g1+"-"+g2', 'abc-a-c') |
| 96 | +=== grouping error ('(a)b(c)', 'abc', 0, 'found+"-"+g1+"-"+g2', 'abc-a-c') 'abc--' should be 'abc-a-c' |
| 97 | +('a+b+c', 'aabbabc', 0, 'found', 'abc') |
| 98 | +('(a+|b)*', 'ab', 0, 'found+"-"+g1', 'ab-b') |
| 99 | +*** Unexpected error *** |
| 100 | +Traceback (innermost last): |
| 101 | + File "../Lib/test/test_re.py", line 19, in ? |
| 102 | + obj=re.compile(pattern) |
| 103 | + File "../Lib/re.py", line 745, in compile |
| 104 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 105 | +AttributeError: attribute-less object |
| 106 | +('(a+|b)+', 'ab', 0, 'found+"-"+g1', 'ab-b') |
| 107 | +*** Unexpected error *** |
| 108 | +Traceback (innermost last): |
| 109 | + File "../Lib/test/test_re.py", line 19, in ? |
| 110 | + obj=re.compile(pattern) |
| 111 | + File "../Lib/re.py", line 745, in compile |
| 112 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 113 | +AttributeError: attribute-less object |
| 114 | +('(a+|b)?', 'ab', 0, 'found+"-"+g1', 'a-a') |
| 115 | +*** Unexpected error *** |
| 116 | +Traceback (innermost last): |
| 117 | + File "../Lib/test/test_re.py", line 19, in ? |
| 118 | + obj=re.compile(pattern) |
| 119 | + File "../Lib/re.py", line 745, in compile |
| 120 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 121 | +AttributeError: attribute-less object |
| 122 | +(')(', '-', 2) |
| 123 | +('[^ab]*', 'cde', 0, 'found', 'cde') |
| 124 | +('abc', '', 1) |
| 125 | +('a*', '', 0, 'found', '') |
| 126 | +('a|b|c|d|e', 'e', 0, 'found', 'e') |
| 127 | +*** Unexpected error *** |
| 128 | +Traceback (innermost last): |
| 129 | + File "../Lib/test/test_re.py", line 19, in ? |
| 130 | + obj=re.compile(pattern) |
| 131 | + File "../Lib/re.py", line 625, in compile |
| 132 | + while (len(stack) != 0) and \ |
| 133 | +AttributeError: attribute-less object |
| 134 | +('(a|b|c|d|e)f', 'ef', 0, 'found+"-"+g1', 'ef-e') |
| 135 | +*** Unexpected error *** |
| 136 | +Traceback (innermost last): |
| 137 | + File "../Lib/test/test_re.py", line 19, in ? |
| 138 | + obj=re.compile(pattern) |
| 139 | + File "../Lib/re.py", line 625, in compile |
| 140 | + while (len(stack) != 0) and \ |
| 141 | +AttributeError: attribute-less object |
| 142 | +('abcd*efg', 'abcdefg', 0, 'found', 'abcdefg') |
| 143 | +('ab*', 'xabyabbbz', 0, 'found', 'ab') |
| 144 | +('ab*', 'xayabbbz', 0, 'found', 'a') |
| 145 | +('(ab|cd)e', 'abcde', 0, 'found+"-"+g1', 'cde-cd') |
| 146 | +*** Unexpected error *** |
| 147 | +Traceback (innermost last): |
| 148 | + File "../Lib/test/test_re.py", line 19, in ? |
| 149 | + obj=re.compile(pattern) |
| 150 | + File "../Lib/re.py", line 745, in compile |
| 151 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 152 | +AttributeError: attribute-less object |
| 153 | +('[abhgefdc]ij', 'hij', 0, 'found', 'hij') |
| 154 | +('^(ab|cd)e', 'abcde', 1, 'xg1y', 'xy') |
| 155 | +*** Unexpected error *** |
| 156 | +Traceback (innermost last): |
| 157 | + File "../Lib/test/test_re.py", line 19, in ? |
| 158 | + obj=re.compile(pattern) |
| 159 | + File "../Lib/re.py", line 745, in compile |
| 160 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 161 | +AttributeError: attribute-less object |
| 162 | +('(abc|)ef', 'abcdef', 0, 'found+"-"+g1', 'ef-') |
| 163 | +*** Unexpected error *** |
| 164 | +Traceback (innermost last): |
| 165 | + File "../Lib/test/test_re.py", line 19, in ? |
| 166 | + obj=re.compile(pattern) |
| 167 | + File "../Lib/re.py", line 745, in compile |
| 168 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 169 | +AttributeError: attribute-less object |
| 170 | +('(a|b)c*d', 'abcd', 0, 'found+"-"+g1', 'bcd-b') |
| 171 | +*** Unexpected error *** |
| 172 | +Traceback (innermost last): |
| 173 | + File "../Lib/test/test_re.py", line 19, in ? |
| 174 | + obj=re.compile(pattern) |
| 175 | + File "../Lib/re.py", line 745, in compile |
| 176 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 177 | +AttributeError: attribute-less object |
| 178 | +('(ab|ab*)bc', 'abc', 0, 'found+"-"+g1', 'abc-a') |
| 179 | +*** Unexpected error *** |
| 180 | +Traceback (innermost last): |
| 181 | + File "../Lib/test/test_re.py", line 19, in ? |
| 182 | + obj=re.compile(pattern) |
| 183 | + File "../Lib/re.py", line 745, in compile |
| 184 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 185 | +AttributeError: attribute-less object |
| 186 | +('a([bc]*)c*', 'abc', 0, 'found+"-"+g1', 'abc-bc') |
| 187 | +=== grouping error ('a([bc]*)c*', 'abc', 0, 'found+"-"+g1', 'abc-bc') 'abc-' should be 'abc-bc' |
| 188 | +('a([bc]*)(c*d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-bc-d') |
| 189 | +=== grouping error ('a([bc]*)(c*d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-bc-d') 'abcd--' should be 'abcd-bc-d' |
| 190 | +('a([bc]+)(c*d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-bc-d') |
| 191 | +=== grouping error ('a([bc]+)(c*d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-bc-d') 'abcd--' should be 'abcd-bc-d' |
| 192 | +('a([bc]*)(c+d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-b-cd') |
| 193 | +=== grouping error ('a([bc]*)(c+d)', 'abcd', 0, 'found+"-"+g1+"-"+g2', 'abcd-b-cd') 'abcd--' should be 'abcd-b-cd' |
| 194 | +('a[bcd]*dcdcde', 'adcdcde', 0, 'found', 'adcdcde') |
| 195 | +('a[bcd]+dcdcde', 'adcdcde', 1) |
| 196 | +('(ab|a)b*c', 'abc', 0, 'found+"-"+g1', 'abc-ab') |
| 197 | +*** Unexpected error *** |
| 198 | +Traceback (innermost last): |
| 199 | + File "../Lib/test/test_re.py", line 19, in ? |
| 200 | + obj=re.compile(pattern) |
| 201 | + File "../Lib/re.py", line 745, in compile |
| 202 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 203 | +AttributeError: attribute-less object |
| 204 | +('((a)(b)c)(d)', 'abcd', 0, 'g1+"-"+g2+"-"+g3+"-"+g4', 'abc-a-b-d') |
| 205 | +=== grouping error ('((a)(b)c)(d)', 'abcd', 0, 'g1+"-"+g2+"-"+g3+"-"+g4', 'abc-a-b-d') '---' should be 'abc-a-b-d' |
| 206 | +('[a-zA-Z_][a-zA-Z0-9_]*', 'alpha', 0, 'found', 'alpha') |
| 207 | +('^a(bc+|b[eh])g|.h$', 'abh', 0, 'found+"-"+g1', 'bh-None') |
| 208 | +*** Unexpected error *** |
| 209 | +Traceback (innermost last): |
| 210 | + File "../Lib/test/test_re.py", line 19, in ? |
| 211 | + obj=re.compile(pattern) |
| 212 | + File "../Lib/re.py", line 745, in compile |
| 213 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 214 | +AttributeError: attribute-less object |
| 215 | +('(bc+d$|ef*g.|h?i(j|k))', 'effgz', 0, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None') |
| 216 | +*** Unexpected error *** |
| 217 | +Traceback (innermost last): |
| 218 | + File "../Lib/test/test_re.py", line 19, in ? |
| 219 | + obj=re.compile(pattern) |
| 220 | + File "../Lib/re.py", line 625, in compile |
| 221 | + while (len(stack) != 0) and \ |
| 222 | +AttributeError: attribute-less object |
| 223 | +('(bc+d$|ef*g.|h?i(j|k))', 'ij', 0, 'found+"-"+g1+"-"+g2', 'ij-ij-j') |
| 224 | +*** Unexpected error *** |
| 225 | +Traceback (innermost last): |
| 226 | + File "../Lib/test/test_re.py", line 19, in ? |
| 227 | + obj=re.compile(pattern) |
| 228 | + File "../Lib/re.py", line 625, in compile |
| 229 | + while (len(stack) != 0) and \ |
| 230 | +AttributeError: attribute-less object |
| 231 | +('(bc+d$|ef*g.|h?i(j|k))', 'effg', 1) |
| 232 | +*** Unexpected error *** |
| 233 | +Traceback (innermost last): |
| 234 | + File "../Lib/test/test_re.py", line 19, in ? |
| 235 | + obj=re.compile(pattern) |
| 236 | + File "../Lib/re.py", line 625, in compile |
| 237 | + while (len(stack) != 0) and \ |
| 238 | +AttributeError: attribute-less object |
| 239 | +('(bc+d$|ef*g.|h?i(j|k))', 'bcdd', 1) |
| 240 | +*** Unexpected error *** |
| 241 | +Traceback (innermost last): |
| 242 | + File "../Lib/test/test_re.py", line 19, in ? |
| 243 | + obj=re.compile(pattern) |
| 244 | + File "../Lib/re.py", line 625, in compile |
| 245 | + while (len(stack) != 0) and \ |
| 246 | +AttributeError: attribute-less object |
| 247 | +('(bc+d$|ef*g.|h?i(j|k))', 'reffgz', 0, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None') |
| 248 | +*** Unexpected error *** |
| 249 | +Traceback (innermost last): |
| 250 | + File "../Lib/test/test_re.py", line 19, in ? |
| 251 | + obj=re.compile(pattern) |
| 252 | + File "../Lib/re.py", line 625, in compile |
| 253 | + while (len(stack) != 0) and \ |
| 254 | +AttributeError: attribute-less object |
| 255 | +('(((((((((a)))))))))', 'a', 0, 'found', 'a') |
| 256 | +('multiple words of text', 'uh-uh', 1) |
| 257 | +('multiple words', 'multiple words, yeah', 0, 'found', 'multiple words') |
| 258 | +=== Failed incorrectly ('multiple words', 'multiple words, yeah', 0, 'found', 'multiple words') |
| 259 | +('(.*)c(.*)', 'abcde', 0, 'found+"-"+g1+"-"+g2', 'abcde-ab-de') |
| 260 | +=== grouping error ('(.*)c(.*)', 'abcde', 0, 'found+"-"+g1+"-"+g2', 'abcde-ab-de') 'abcde--' should be 'abcde-ab-de' |
| 261 | +('((.*), (.*))', '(a, b)', 0, 'g2+"-"+g1', 'b-a') |
| 262 | +=== grouping error ('((.*), (.*))', '(a, b)', 0, 'g2+"-"+g1', 'b-a') '-' should be 'b-a' |
| 263 | +('[k]', 'ab', 1) |
| 264 | +('a[-]?c', 'ac', 0, 'found', 'ac') |
| 265 | +('(abc)\\1', 'abcabc', 0, 'g1', 'abc') |
| 266 | +=== grouping error ('(abc)\\1', 'abcabc', 0, 'g1', 'abc') '' should be 'abc' |
| 267 | +('([a-c]*)\\1', 'abcabc', 0, 'g1', 'abc') |
| 268 | +=== grouping error ('([a-c]*)\\1', 'abcabc', 0, 'g1', 'abc') '' should be 'abc' |
| 269 | +('^(.+)?B', 'AB', 0, 'g1', 'A') |
| 270 | +=== grouping error ('^(.+)?B', 'AB', 0, 'g1', 'A') '' should be 'A' |
| 271 | +('(a+).\\1$', 'aaaaa', 0, 'found+"-"+g1', 'aaaaa-aa') |
| 272 | +=== grouping error ('(a+).\\1$', 'aaaaa', 0, 'found+"-"+g1', 'aaaaa-aa') 'aaaaa-' should be 'aaaaa-aa' |
| 273 | +('^(a+).\\1$', 'aaaa', 1) |
| 274 | +('(abc)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') |
| 275 | +=== grouping error ('(abc)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') 'abcabc-' should be 'abcabc-abc' |
| 276 | +('([a-c]+)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') |
| 277 | +=== grouping error ('([a-c]+)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') 'abcabc-' should be 'abcabc-abc' |
| 278 | +('(a)\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') |
| 279 | +=== grouping error ('(a)\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') 'aa-' should be 'aa-a' |
| 280 | +('(a+)\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') |
| 281 | +=== grouping error ('(a+)\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') 'aa-' should be 'aa-a' |
| 282 | +('(a+)+\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') |
| 283 | +=== grouping error ('(a+)+\\1', 'aa', 0, 'found+"-"+g1', 'aa-a') 'aa-' should be 'aa-a' |
| 284 | +('(a).+\\1', 'aba', 0, 'found+"-"+g1', 'aba-a') |
| 285 | +=== grouping error ('(a).+\\1', 'aba', 0, 'found+"-"+g1', 'aba-a') 'aba-' should be 'aba-a' |
| 286 | +('(a)ba*\\1', 'aba', 0, 'found+"-"+g1', 'aba-a') |
| 287 | +=== grouping error ('(a)ba*\\1', 'aba', 0, 'found+"-"+g1', 'aba-a') 'aba-' should be 'aba-a' |
| 288 | +('(aa|a)a\\1$', 'aaa', 0, 'found+"-"+g1', 'aaa-a') |
| 289 | +*** Unexpected error *** |
| 290 | +Traceback (innermost last): |
| 291 | + File "../Lib/test/test_re.py", line 19, in ? |
| 292 | + obj=re.compile(pattern) |
| 293 | + File "../Lib/re.py", line 745, in compile |
| 294 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 295 | +AttributeError: attribute-less object |
| 296 | +('(a|aa)a\\1$', 'aaa', 0, 'found+"-"+g1', 'aaa-a') |
| 297 | +*** Unexpected error *** |
| 298 | +Traceback (innermost last): |
| 299 | + File "../Lib/test/test_re.py", line 19, in ? |
| 300 | + obj=re.compile(pattern) |
| 301 | + File "../Lib/re.py", line 745, in compile |
| 302 | + while (len(stack) > 0) and (stack[-1][0].name != '('): |
| 303 | +AttributeError: attribute-less object |
| 304 | +('(a+)a\\1$', 'aaa', 0, 'found+"-"+g1', 'aaa-a') |
| 305 | +=== grouping error ('(a+)a\\1$', 'aaa', 0, 'found+"-"+g1', 'aaa-a') 'aaa-' should be 'aaa-a' |
| 306 | +('([abc]*)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') |
| 307 | +=== grouping error ('([abc]*)\\1', 'abcabc', 0, 'found+"-"+g1', 'abcabc-abc') 'abcabc-' should be 'abcabc-abc' |
| 308 | +('(a)(b)c|ab', 'ab', 0, 'found+"-"+g1+"-"+g2', 'ab-None-None') |
| 309 | +*** Unexpected error *** |
| 310 | +Traceback (innermost last): |
| 311 | + File "../Lib/test/test_re.py", line 19, in ? |
| 312 | + obj=re.compile(pattern) |
| 313 | + File "../Lib/re.py", line 1097, in compile |
| 314 | + if stack[-1][0].name == '(': |
| 315 | +AttributeError: attribute-less object |
| 316 | +('(a)+x', 'aaax', 0, 'found+"-"+g1', 'aaax-a') |
| 317 | +=== grouping error ('(a)+x', 'aaax', 0, 'found+"-"+g1', 'aaax-a') 'aaax-' should be 'aaax-a' |
| 318 | +('([ac])+x', 'aacx', 0, 'found+"-"+g1', 'aacx-c') |
| 319 | +=== grouping error ('([ac])+x', 'aacx', 0, 'found+"-"+g1', 'aacx-c') 'aacx-' should be 'aacx-c' |
| 320 | +('([^/]*/)*sub1/', 'd:msgs/tdir/sub1/trial/away.cpp', 0, 'found+"-"+g1', 'd:msgs/tdir/sub1/-tdir/') |
| 321 | +=== grouping error ('([^/]*/)*sub1/', 'd:msgs/tdir/sub1/trial/away.cpp', 0, 'found+"-"+g1', 'd:msgs/tdir/sub1/-tdir/') 'd:msgs/tdir/sub1/-' should be 'd:msgs/tdir/sub1/-tdir/' |
| 322 | +('([^.]*)\\.([^:]*):[T ]+(.*)', 'track1.title:TBlah blah blah', 0, 'found+"-"+g1+"-"+g2+"-"+g3', 'track1.title:TBlah blah blah-track1-title-Blah blah blah') |
| 323 | +=== Failed incorrectly ('([^.]*)\\.([^:]*):[T ]+(.*)', 'track1.title:TBlah blah blah', 0, 'found+"-"+g1+"-"+g2+"-"+g3', 'track1.title:TBlah blah blah-track1-title-Blah blah blah') |
| 324 | +('([^N]*N)+', 'abNNxyzN', 0, 'found+"-"+g1', 'abNNxyzN-xyzN') |
| 325 | +=== grouping error ('([^N]*N)+', 'abNNxyzN', 0, 'found+"-"+g1', 'abNNxyzN-xyzN') 'abNNxyzN-' should be 'abNNxyzN-xyzN' |
| 326 | +('([^N]*N)+', 'abNNxyz', 0, 'found+"-"+g1', 'abNN-N') |
| 327 | +=== grouping error ('([^N]*N)+', 'abNNxyz', 0, 'found+"-"+g1', 'abNN-N') 'abNN-' should be 'abNN-N' |
| 328 | +('([abc]*)x', 'abcx', 0, 'found+"-"+g1', 'abcx-abc') |
| 329 | +=== grouping error ('([abc]*)x', 'abcx', 0, 'found+"-"+g1', 'abcx-abc') 'abcx-' should be 'abcx-abc' |
| 330 | +('([abc]*)x', 'abc', 1) |
| 331 | +('([xyz]*)x', 'abcx', 0, 'found+"-"+g1', 'x-') |
| 332 | +('(a)+b|aac', 'aac', 0, 'found+"-"+g1', 'aac-None') |
| 333 | +*** Unexpected error *** |
| 334 | +Traceback (innermost last): |
| 335 | + File "../Lib/test/test_re.py", line 19, in ? |
| 336 | + obj=re.compile(pattern) |
| 337 | + File "../Lib/re.py", line 1097, in compile |
| 338 | + if stack[-1][0].name == '(': |
| 339 | +AttributeError: attribute-less object |
0 commit comments