Quote output of _assertEquals()
It's easier to detect trailing spaces this way.
This commit is contained in:
parent
4038d4b562
commit
a7377f180a
|
@ -490,8 +490,8 @@ class MatchCompiler:
|
||||||
def _assertEquals(self, actual, expected):
|
def _assertEquals(self, actual, expected):
|
||||||
if actual != expected:
|
if actual != expected:
|
||||||
print ('Assertion failed:')
|
print ('Assertion failed:')
|
||||||
print (actual)
|
print ('"' + actual + '"')
|
||||||
print (expected)
|
print ('"' + expected + '"')
|
||||||
assert actual == expected
|
assert actual == expected
|
||||||
|
|
||||||
def _selftests(self):
|
def _selftests(self):
|
||||||
|
|
Loading…
Reference in New Issue