Skip to content

Commit 8ecc50b

Browse files
committed
No need to fetch the good URL if we're going to skip the diff.
- Legacy-Id: 674
1 parent 6b80966 commit 8ecc50b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def doUrlsTest(self, lst):
286286
res = ("Fail", "Exc")
287287
note("Exception for URL '%s'" % url)
288288
traceback.print_exc()
289-
if master:
289+
if master and not "skipdiff" in codes::
290290
try:
291291
#print "Fetching", master, "...",
292292
mfile = urllib.urlopen(master)
@@ -297,7 +297,7 @@ def doUrlsTest(self, lst):
297297
note(" %s %s" % (e.code, e.url))
298298
goodhtml = None
299299
try:
300-
if goodhtml and response.content and not "skipdiff" in codes:
300+
if goodhtml and response.content:
301301
if "sort" in codes:
302302
testtext = reduce_text(response.content, fill=False)
303303
goodtext = reduce_text(goodhtml, fill=False)

0 commit comments

Comments
 (0)