File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -42,23 +42,7 @@ class UnraisableMeta(NamedTuple):
42
42
)
43
43
44
44
45
- def _warn_if_triggered (self ) -> None :
46
- if self .unraisable :
47
- if self .unraisable .err_msg is not None :
48
- err_msg = self .unraisable .err_msg
49
- else :
50
- err_msg = "Exception ignored in"
51
- msg = f"{ err_msg } : { self .unraisable .object !r} \n \n "
52
- msg += "" .join (
53
- traceback .format_exception (
54
- self .unraisable .exc_type ,
55
- self .unraisable .exc_value ,
56
- self .unraisable .exc_traceback ,
57
- )
58
- )
59
- warnings .warn (pytest .PytestUnraisableExceptionWarning (msg ))
60
-
61
- def collect_unraisable (config : Config ) -> None :
45
+ def collect_unraisable (config : Config ) -> None :
62
46
pop_unraisable = config .stash [unraisable_exceptions ].pop
63
47
errors : list [pytest .PytestUnraisableExceptionWarning | RuntimeError ] = []
64
48
meta = None
You can’t perform that action at this time.
0 commit comments