Using deprecated method assertRaisesRegexp()
53 self._assert_equal(r"[\s \S]", r".")
54
55 def test_merge_class_union_inverted(self):
56 with self.assertRaisesRegexp(re.error, "cant negate all matches"):57 simplify_regex(r" [^\s\S]")
58
59 def test_anchor(self):
Using deprecated method assertRaisesRegexp()
13 check_regex(a)
14
15 def _assert_invalid(self, a, msg):
16 with self.assertRaisesRegexp(re.error, msg):17 check_regex(a)
18
19 def test_valid_union(self):
Description
The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.