Fix SyntaxWarning invalid escape sequence in Python code (#3433)
This commit is contained in:
@@ -44,19 +44,19 @@ class TestUpgrade(TestCase):
|
||||
self.t("add one")
|
||||
|
||||
code, out, err = self.t("1 info")
|
||||
self.assertRegex(out, "Status\s+Pending")
|
||||
self.assertRegex(out, r"Status\s+Pending")
|
||||
|
||||
self.t("1 modify due:tomorrow recur:weekly")
|
||||
self.t("list")
|
||||
|
||||
code, out, err = self.t("1 info")
|
||||
self.assertRegex(out, "Status\s+Recurring")
|
||||
self.assertRegex(out, "Recurrence\s+weekly")
|
||||
self.assertRegex(out, r"Status\s+Recurring")
|
||||
self.assertRegex(out, r"Recurrence\s+weekly")
|
||||
|
||||
# Also check for the presence of a children task with pending state
|
||||
code, out, err = self.t("2 info")
|
||||
self.assertRegex(out, "Status\s+Pending")
|
||||
self.assertRegex(out, "Recurrence\s+weekly")
|
||||
self.assertRegex(out, r"Status\s+Pending")
|
||||
self.assertRegex(out, r"Recurrence\s+weekly")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user