diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 23:02:52 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 23:02:52 +0200 |
commit | 2a12974bca2433eea0131d904a423ed8234dcf7a (patch) | |
tree | e238e53c319beb8f913e3411fa91a98504d1743d /Lib/test/test_signal.py | |
parent | d976098e3bb53b9c52d55a303e1389a102ed8bae (diff) | |
download | cpython-git-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.gz |
Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by
_thread.get_ident().
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index cdd3f3e3a4..4bf2d2dedf 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -557,7 +557,7 @@ class PendingSignalsTests(unittest.TestCase): def kill(self, signum): if self.has_pthread_kill: - tid = threading.current_thread().ident + tid = threading.get_ident() signal.pthread_kill(tid, signum) else: pid = os.getpid() @@ -589,7 +589,7 @@ class PendingSignalsTests(unittest.TestCase): 'need signal.pthread_kill()') def test_pthread_kill(self): signum = signal.SIGUSR1 - current = threading.current_thread().ident + current = threading.get_ident() old_handler = signal.signal(signum, self.handler) self.addCleanup(signal.signal, signum, old_handler) |