mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-97706: multiprocessing tests: Delete unused variable rand
(#97707)
This commit is contained in:
parent
9151bbefea
commit
14d4f68ebb
1 changed files with 1 additions and 2 deletions
|
@ -5289,13 +5289,12 @@ class TestResourceTracker(unittest.TestCase):
|
|||
# Check that killing process does not leak named semaphores
|
||||
#
|
||||
cmd = '''if 1:
|
||||
import time, os, tempfile
|
||||
import time, os
|
||||
import multiprocessing as mp
|
||||
from multiprocessing import resource_tracker
|
||||
from multiprocessing.shared_memory import SharedMemory
|
||||
|
||||
mp.set_start_method("spawn")
|
||||
rand = tempfile._RandomNameSequence()
|
||||
|
||||
|
||||
def create_and_register_resource(rtype):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue