diff options
Diffstat (limited to 'tests/test_thread.py')
-rw-r--r-- | tests/test_thread.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_thread.py b/tests/test_thread.py index a40b99f..d58a30f 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -1,7 +1,11 @@ +import os import unittest from common import gobject, gtk, testhelper +# Enable PyGILState API +os.environ['PYGTK_USE_GIL_STATE_API'] = '' + gobject.threads_init() class TestThread(unittest.TestCase): |