forked from qt-creator/qt-creator
Squish: Fix handling of server issues in tst_codepasting
...properly this time, I hope. Change-Id: I4cf492f28c99fa15425c44f41656e6220f7a8715 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -53,11 +53,11 @@ def closeHTTPStatusAndPasterDialog(protocol, pasterDialog):
|
||||
if 'Service Unavailable' in text:
|
||||
test.warning(text)
|
||||
return True
|
||||
test.log("Closed dialog without expected error.", text)
|
||||
except:
|
||||
t,v = sys.exc_info()[:2]
|
||||
test.warning("An exception occurred in closeHTTPStatusAndPasterDialog(): %s(%s)"
|
||||
% (str(t), str(v)))
|
||||
test.log("Closed dialog without expected error.", text)
|
||||
return False
|
||||
|
||||
def pasteFile(sourceFile, protocol):
|
||||
|
||||
Reference in New Issue
Block a user