No need to fetch the good URL if we're going to skip the diff.

- Legacy-Id: 674
This commit is contained in:
Henrik Levkowetz 2007-06-26 23:33:48 +00:00
parent 6b80966beb
commit 8ecc50b0fa

View file

@ -286,7 +286,7 @@ class UrlTestCase(TestCase):
res = ("Fail", "Exc")
note("Exception for URL '%s'" % url)
traceback.print_exc()
if master:
if master and not "skipdiff" in codes::
try:
#print "Fetching", master, "...",
mfile = urllib.urlopen(master)
@ -297,7 +297,7 @@ class UrlTestCase(TestCase):
note(" %s %s" % (e.code, e.url))
goodhtml = None
try:
if goodhtml and response.content and not "skipdiff" in codes:
if goodhtml and response.content:
if "sort" in codes:
testtext = reduce_text(response.content, fill=False)
goodtext = reduce_text(goodhtml, fill=False)