diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-30 14:53:09 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-30 14:53:09 +0200 |
commit | d5c355ccc70d011ef2010537838d9a82e24b2b80 (patch) | |
tree | 93cd12a87150e673d0a8b16c04ffcaff16fea3aa /Lib/test/test_threadsignals.py | |
parent | fab6c70770c7c895a4dbd898a963e2c52da72c04 (diff) | |
download | cpython-git-d5c355ccc70d011ef2010537838d9a82e24b2b80.tar.gz |
Issue #11223: Replace threading._info() by sys.thread_info
Diffstat (limited to 'Lib/test/test_threadsignals.py')
-rw-r--r-- | Lib/test/test_threadsignals.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py index b0bc607285..f975a75e85 100644 --- a/Lib/test/test_threadsignals.py +++ b/Lib/test/test_threadsignals.py @@ -14,9 +14,8 @@ if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos': process_pid = os.getpid() signalled_all=thread.allocate_lock() -info = thread.info() -USING_PTHREAD_COND = (info['name'] == 'pthread' - and info['lock_implementation'] == 'mutex+cond') +USING_PTHREAD_COND = (sys.thread_info.name == 'pthread' + and sys.thread_info.lock == 'mutex+cond') def registerSignals(for_usr1, for_usr2, for_alrm): usr1 = signal.signal(signal.SIGUSR1, for_usr1) |