summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-23 12:57:34 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-23 12:57:34 (GMT)
commitcd3d816f93038e9cb35aaf8b8e0852dc8bb4cd49 (patch)
tree599f016aa9ecb6c2c943b73fb99b61706a93294a /tests/test_pretty_print.py
parent0a2267ce9a1698468fa508d30f1841b71bcc8992 (diff)
fix for recently introduced bug: If no actual image was generated, we failed to output the expected image
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 87ac3df..5e25052 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -158,7 +158,7 @@ def parsetest(teststring):
hits = map( lambda pattern: ezsearch(pattern,teststring), patterns )
test = Test(hits[0],hits[1],hits[2]=='Passed',hits[3],hits[4],hits[5],hits[6],hits[7],teststring)
if len(test.actualfile) > 0: test.actualfile_data = tryread(test.actualfile)
- if len(test.actualfile) > 0: test.expectedfile_data = tryread(test.expectedfile)
+ if len(test.expectedfile) > 0: test.expectedfile_data = tryread(test.expectedfile)
return test
def parselog(data):
contact: Jan Huwald // Impressum