Way too many slashes in MatchesRegex mismatch
Bug #818079 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Wishlist
|
Jonathan Lange |
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.
Related branches
lp:~jml/testtools/nicer-regex-fail
- testtools committers: Pending requested
-
Diff: 64 lines (+9/-6)4 files modifiedNEWS (+3/-2)
testtools/matchers.py (+2/-1)
testtools/tests/test_matchers.py (+3/-2)
testtools/tests/test_with_with.py (+1/-1)
Changed in testtools: | |
assignee: | nobody → Jonathan Lange (jml) |
status: | Triaged → In Progress |
Changed in testtools: | |
status: | In Progress → Fix Committed |
milestone: | none → next |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.