Philipp Hörist pushed to branch master at gajim / gajim
Commits:
197bcf47 by lovetox at 2022-01-12T22:28:00+01:00
Show leak warnings when running with warnings enabled
- - - - -
1 changed file:
- gajim/common/application.py
Changes:
=====================================
gajim/common/application.py
=====================================
@@ -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],
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/197bcf474e5caf41f79c7d51c1b0c9df06aeaeaa
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/197bcf474e5caf41f79c7d51c1b0c9df06aeaeaa
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits