]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
MNT: use raw string for invalid escape sequence
authorThomas A Caswell <tcaswell@bnl.gov>
Thu, 31 Oct 2019 00:00:24 +0000 (20:00 -0400)
committerThomas A Caswell <tcaswell@bnl.gov>
Thu, 31 Oct 2019 00:00:24 +0000 (20:00 -0400)
tests/test_name.py

index 8a020150057d56919d0de723d4c65eb1486514c8..bbe8d1d6fb62ef36877db366b1898cb923f20a5a 100644 (file)
@@ -235,12 +235,12 @@ class NameTestCase(unittest.TestCase):
     def testToText7(self):
         n = dns.name.from_text(r'FOO\.bar', origin=None)
         t = n.to_text()
-        self.assertEqual(t, 'FOO\.bar')
+        self.assertEqual(t, r'FOO\.bar')
 
     def testToText8(self):
         n = dns.name.from_text(r'\070OO\.bar', origin=None)
         t = n.to_text()
-        self.assertEqual(t, 'FOO\.bar')
+        self.assertEqual(t, r'FOO\.bar')
 
     def testToText9(self):
         n = dns.name.from_text('FOO bar', origin=None)