summaryrefslogtreecommitdiffstats
path: root/Lib/test/lock_tests.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:02:52 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:02:52 (GMT)
commit2a12974bca2433eea0131d904a423ed8234dcf7a (patch)
treee238e53c319beb8f913e3411fa91a98504d1743d /Lib/test/lock_tests.py
parentd976098e3bb53b9c52d55a303e1389a102ed8bae (diff)
downloadcpython-2a12974bca2433eea0131d904a423ed8234dcf7a.zip
cpython-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.gz
cpython-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.bz2
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/lock_tests.py')
-rw-r--r--Lib/test/lock_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py
index 126f97c..7bcc436 100644
--- a/Lib/test/lock_tests.py
+++ b/Lib/test/lock_tests.py
@@ -4,7 +4,7 @@ Various tests for synchronization primitives.
import sys
import time
-from _thread import start_new_thread, get_ident, TIMEOUT_MAX
+from _thread import start_new_thread, TIMEOUT_MAX
import threading
import unittest
@@ -31,7 +31,7 @@ class Bunch(object):
self.finished = []
self._can_exit = not wait_before_exit
def task():
- tid = get_ident()
+ tid = threading.get_ident()
self.started.append(tid)
try:
f()