mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revert "bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)" (GH-13458)
This reverts commit 4959c33d25
.
This commit is contained in:
parent
925af1d99b
commit
d12e75734d
10 changed files with 2 additions and 133 deletions
|
@ -104,10 +104,6 @@ class ThreadTests(BaseTestCase):
|
|||
self.assertRegex(repr(t), r'^<TestThread\(.*, initial\)>$')
|
||||
t.start()
|
||||
|
||||
native_ids = set(t.native_id for t in threads) | {threading.get_native_id()}
|
||||
self.assertNotIn(None, native_ids)
|
||||
self.assertEqual(len(native_ids), NUMTASKS + 1)
|
||||
|
||||
if verbose:
|
||||
print('waiting for all tasks to complete')
|
||||
for t in threads:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue