fix a failing test

This commit is contained in:
Thomas Vander Stichele
2013-07-13 18:49:00 +02:00
parent c75f71ead3
commit e29fa0fb18
2 changed files with 4 additions and 2 deletions

View File

@@ -31,7 +31,8 @@ def _diff(old, new, desc):
def diffStrings(orig, new, desc='input'):
assert type(orig) == type(new)
assert type(orig) == type(new), 'type %s and %s are different' % (
type(orig), type(new))
def _tolines(s):
return [line + '\n' for line in s.split('\n')]