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 12
12
import subprocess
13
13
import locale
14
14
import unittest
15
+ import traceback
15
16
16
17
from datetime import datetime
17
18
from functools import wraps , partial
@@ -978,9 +979,10 @@ def dec(f):
978
979
979
980
# skip tests on exceptions with this message
980
981
_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' ,
984
986
'HTTP Error 503: Service Unavailable' ,
985
987
)
986
988
@@ -1138,7 +1140,12 @@ def wrapper(*args, **kwargs):
1138
1140
raise SkipTest ("Skipping test due to known errno"
1139
1141
" and error %s" % e )
1140
1142
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 ]):
1142
1149
raise SkipTest ("Skipping test because exception message is known"
1143
1150
" and error %s" % e )
1144
1151
You can’t perform that action at this time.
0 commit comments