File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ def _norm_stack(formatted_stack, exc):
59
59
60
60
normalized = []
61
61
for line in formatted_stack .splitlines ():
62
+ if set (line .strip ()) <= set ('^~' ):
63
+ # python 3.13 added this error indicator which isn't really useful to test
64
+ continue
62
65
if line .strip ().startswith ('File' ):
63
66
file_name = line .split ('"' )[1 ]
64
67
short_file_name = os .path .split (file_name .strip ('"' ))[1 ]
@@ -68,16 +71,6 @@ def _norm_stack(formatted_stack, exc):
68
71
69
72
line = line .rstrip () # trailing whitespace shouldn't matter
70
73
71
- # qualify python2's unqualified error type names
72
- exc_type_name = exc .__class__ .__name__
73
- if exc_type_name in line :
74
- mod_name = str (getattr (exc .__class__ , '__module__' , '' ) or '' )
75
- exc_type_qual_name = exc_type_name
76
- if 'builtin' not in mod_name :
77
- exc_type_qual_name = mod_name + '.' + exc_type_name
78
- if exc_type_qual_name not in line :
79
- line = line .replace (exc_type_name , exc_type_qual_name )
80
-
81
74
normalized .append (line )
82
75
83
76
stack = "\n " .join (normalized ) + '\n '
You can’t perform that action at this time.
0 commit comments