(self)
| 2917 | |
| 2918 | @cpython_only |
| 2919 | def test_immutable(self): |
| 2920 | # bpo-43908: check that re types are immutable |
| 2921 | with self.assertRaises(TypeError): |
| 2922 | re.Match.foo = 1 |
| 2923 | with self.assertRaises(TypeError): |
| 2924 | re.Pattern.foo = 1 |
| 2925 | with self.assertRaises(TypeError): |
| 2926 | pat = re.compile("") |
| 2927 | tp = type(pat.scanner("")) |
| 2928 | tp.foo = 1 |
| 2929 | |
| 2930 | def test_overlap_table(self): |
| 2931 | f = re._compiler._generate_overlap_table |
nothing calls this directly
no test coverage detected