Way too many slashes in MatchesRegex mismatch
Bug #818080 reported by
Jonathan Lange
This bug report is a duplicate of:
Bug #818079: Way too many slashes in MatchesRegex mismatch.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
e.g.
AssertionError: '' does not match '\\d\\d\
=== modified file 'testtools/
--- testtools/
+++ testtools/
@@ -730,7 +730,7 @@ class MatchesRegex(
def match(self, value):
if not re.match(
- return Mismatch("%r does not match %r" % (value, self.pattern))
+ return Mismatch("%r does not match %s" % (value, self.pattern))
class MatchesSetwise(
probably fixes it.
To post a comment you must log in.