Commit 197bcf47 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Show leak warnings when running with warnings enabled

parent 7e115109
Pipeline #9034 passed with stages
in 4 minutes and 24 seconds
......@@ -18,6 +18,7 @@
from typing import Type
from typing import TextIO
import os
import sys
from gajim.common import app
......@@ -92,6 +93,7 @@ def _quit_app(self) -> None:
def _show_warnings() -> None:
import traceback
import warnings
os.environ['GAJIM_LEAK'] = 'true'
def warn_with_traceback(message: Union[Warning, str],
category: Type[Warning],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment