◐ Shell
clean mode source ↗

gh-99518: Fix escape symbol in `test_enum` by sobolevn · Pull Request #99519 · python/cpython

Expand Up @@ -1478,7 +1478,7 @@ class MoreColor(Color): class EvenMoreColor(Color, IntEnum): chartruese = 7 # with self.assertRaisesRegex(ValueError, "\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"): with self.assertRaisesRegex(ValueError, r"\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"): Color('Foo', ('pink', 'black'))
def test_exclude_methods(self): Expand Down