File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1212import subprocess
1313import locale
1414import unittest
15+ import traceback
1516
1617from datetime import datetime
1718from functools import wraps , partial
@@ -978,9 +979,10 @@ def dec(f):
978979
979980# skip tests on exceptions with this message
980981_network_error_messages = (
981- 'urlopen error timed out' ,
982- 'timeout: timed out' ,
983- 'socket.timeout: timed out' ,
982+ # 'urlopen error timed out',
983+ # 'timeout: timed out',
984+ # 'socket.timeout: timed out',
985+ 'timed out' ,
984986 'HTTP Error 503: Service Unavailable' ,
985987 )
986988
@@ -1138,7 +1140,12 @@ def wrapper(*args, **kwargs):
11381140 raise SkipTest ("Skipping test due to known errno"
11391141 " and error %s" % e )
11401142
1141- if any ([m .lower () in str (e ).lower () for m in _skip_on_messages ]):
1143+ try :
1144+ e_str = traceback .format_exc (e )
1145+ except :
1146+ e_Str = str (e )
1147+
1148+ if any ([m .lower () in e_str .lower () for m in _skip_on_messages ]):
11421149 raise SkipTest ("Skipping test because exception message is known"
11431150 " and error %s" % e )
11441151
You can’t perform that action at this time.
0 commit comments