Skip to content

Commit 64a0b05

Browse files
Fix failing test.
1 parent f144236 commit 64a0b05

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

webware/MiddleKit/Tests/MKDump.mkmodel/TestSamples.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ def test(store):
77

88
dumped = open('Dump.csv').readlines()
99
expected = open('../MKDump.mkmodel/Samples.csv').readlines()
10-
diff = map(str.rstrip, difflib.context_diff(dumped, expected,
11-
fromfile='dumped.csv', tofile='expected.csv'))
10+
diff = list(map(str.rstrip, difflib.context_diff(dumped, expected,
11+
fromfile='dumped.csv', tofile='expected.csv')))
1212

13-
for line in diff:
14-
print line
13+
if diff:
14+
print('\n\n\nDump output did not match what was expected.')
15+
print('DIFF OUTPUT BEGIN:')
16+
for line in diff:
17+
print(line)
18+
print('DIFF OUTPUT END')
1519

16-
assert not diff
20+
assert not diff

0 commit comments

Comments
 (0)