Skip to content

Commit e5c5d4c

Browse files
committed
Tweaked the return handling for urltest diffs.
- Legacy-Id: 6444
1 parent b5ac288 commit e5c5d4c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/utils/test_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ def doTestUrl(self, tuple):
171171
else:
172172
print " (%.1f s, %d kB)" % (elapsed, len(response.content)/1000)
173173
if code in codes and code == "200":
174-
self.doDiff(tuple, response)
174+
diff_result = self.doDiff(tuple, response)
175+
if diff_result == False:
176+
failed = True
175177
except:
176178
failed = True
177179
print "Exception for URL '%s'" % url
@@ -217,7 +219,7 @@ def doDiff(self, tuple, response):
217219
if diff:
218220
print " Differences found:"
219221
print diff
220-
self.assertEquals(refhtml, testhtml)
222+
return False
221223

222224
def canonicalize_feed(s):
223225
# Django 0.96 handled time zone different -- ignore it for now

0 commit comments

Comments
 (0)