Fix SyntaxWarning invalid escape sequence in Python code (#3433)

This commit is contained in:
Christian Clauss
2024-05-03 02:22:33 +02:00
committed by GitHub
parent 380c740ff0
commit b7551cbba6
37 changed files with 156 additions and 156 deletions

View File

@@ -171,7 +171,7 @@ class TestBug1031(TestCase):
self.t("add from")
code, out, err = self.t("1 info")
expected = "Description\s+to"
expected = r"Description\s+to"
self.assertRegex(out, expected)
def test_alias_to_to(self):
@@ -179,7 +179,7 @@ class TestBug1031(TestCase):
self.t("add from -- to")
code, out, err = self.t("1 info")
expected = "Description\s+to to"
expected = r"Description\s+to to"
self.assertRegex(out, expected)
def test_alias_to_from(self):
@@ -187,7 +187,7 @@ class TestBug1031(TestCase):
self.t("add to -- from")
code, out, err = self.t("1 info")
expected = "Description\s+to from"
expected = r"Description\s+to from"
self.assertRegex(out, expected)