Tweaked the return handling for urltest diffs.

- Legacy-Id: 6444
This commit is contained in:
Henrik Levkowetz 2013-10-13 23:43:50 +00:00
parent b5ac288167
commit e5c5d4cafa

View file

@ -171,7 +171,9 @@ class SimpleUrlTestCase(django.test.TestCase,RealDatabaseTest):
else:
print " (%.1f s, %d kB)" % (elapsed, len(response.content)/1000)
if code in codes and code == "200":
self.doDiff(tuple, response)
diff_result = self.doDiff(tuple, response)
if diff_result == False:
failed = True
except:
failed = True
print "Exception for URL '%s'" % url
@ -217,7 +219,7 @@ class SimpleUrlTestCase(django.test.TestCase,RealDatabaseTest):
if diff:
print " Differences found:"
print diff
self.assertEquals(refhtml, testhtml)
return False
def canonicalize_feed(s):
# Django 0.96 handled time zone different -- ignore it for now