Patchwork D5839: tests: use raw strings in test-cbor.py

login
register
mail settings
Submitter phabricator
Date Feb. 4, 2019, 11:38 p.m.
Message ID <032b18a22b4f2ba1737f1ca0019327eb@localhost.localdomain>
Download mbox | patch
Permalink /patch/38414/
State Not Applicable
Headers show

Comments

phabricator - Feb. 4, 2019, 11:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1ea1bba1c5be: tests: use raw strings in test-cbor.py (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5839?vs=13766&id=13793

REVISION DETAIL
  https://phab.mercurial-scm.org/D5839

AFFECTED FILES
  tests/test-cbor.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-cbor.py b/tests/test-cbor.py
--- a/tests/test-cbor.py
+++ b/tests/test-cbor.py
@@ -926,7 +926,7 @@ 
                                  (False, None, -1, cborutil.SPECIAL_NONE))
 
             with self.assertRaisesRegex(cborutil.CBORDecodeError,
-                                        'semantic tag \d+ not allowed'):
+                                        r'semantic tag \d+ not allowed'):
                 cborutil.decodeitem(encoded)
 
 class SpecialTypesTests(TestCase):
@@ -942,7 +942,7 @@ 
             encoded = cborutil.encodelength(cborutil.MAJOR_TYPE_SPECIAL, i)
 
             with self.assertRaisesRegex(cborutil.CBORDecodeError,
-                                        'special type \d+ not allowed'):
+                                        r'special type \d+ not allowed'):
                 cborutil.decodeitem(encoded)
 
 class SansIODecoderTests(TestCase):