From e5c5d4cafa75e3537598ed3b0cc89eb17edada07 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 13 Oct 2013 23:43:50 +0000 Subject: [PATCH] Tweaked the return handling for urltest diffs. - Legacy-Id: 6444 --- ietf/utils/test_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ietf/utils/test_utils.py b/ietf/utils/test_utils.py index a82269b86..6ac43031e 100644 --- a/ietf/utils/test_utils.py +++ b/ietf/utils/test_utils.py @@ -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