diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-09-28 15:03:43 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-09-28 15:03:43 +0000 |
commit | 44d583628cb7ec1b08d5d7c38bca11479b192424 (patch) | |
tree | 339a42392c32ea16ddf79dd583e1657ba998f662 /tests/test_thread.py | |
parent | 66ebbb785442fd411a251ac262763a47252cf272 (diff) | |
download | pygobject-44d583628cb7ec1b08d5d7c38bca11479b192424.tar.gz |
Apply slighly modified fix from bug 149845PYGTK_2_3_97
This is make threading usable for both users of the threading
module and users that requires interaction with threads from
other extension modules.
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 a40b99f7..d58a30f3 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): |