diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-12 12:39:52 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-12 13:24:03 +0100 |
commit | 48a06d491f19880fafc723d6f69e3e7a58821608 (patch) | |
tree | 98c36f0ad4e0f420fccbdb8c99bcc8a0a3116e88 /tests/__init__.py | |
parent | 9e83b42d935254ffcbe3c4c4e817d7e8ec7afea5 (diff) | |
download | pygobject-48a06d491f19880fafc723d6f69e3e7a58821608.tar.gz |
tests: fix with stable builds by force enabling PyGIDeprecationWarning
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 4d9b3839..09a20e37 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -6,6 +6,7 @@ import unittest import signal import subprocess import atexit +import warnings def init_test_environ(): @@ -96,6 +97,10 @@ def init_test_environ(): "GObject": "2.0", }) + # It's disabled for stable releases by default, this makes sure it's + # always on for the tests. + warnings.simplefilter('default', gi.PyGIDeprecationWarning) + init_test_environ() |