(self)
| 51 | check('\n', '*') |
| 52 | |
| 53 | def test_slow_fnmatch(self): |
| 54 | check = self.check_match |
| 55 | check('a' * 50, '*a*a*a*a*a*a*a*a*a*a') |
| 56 | # The next "takes forever" if the regexp translation is |
| 57 | # straightforward. See bpo-40480. |
| 58 | check('a' * 50 + 'b', '*a*a*a*a*a*a*a*a*a*a', False) |
| 59 | |
| 60 | def test_mix_bytes_str(self): |
| 61 | self.assertRaises(TypeError, fnmatch, 'test', b'*') |