summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoki Saito <49419225+saito828koki@users.noreply.github.com>2022-10-03 00:37:36 (GMT)
committerGitHub <noreply@github.com>2022-10-03 00:37:36 (GMT)
commit14d4f68ebb495fe7ccbaf283386d861a054d8288 (patch)
treeea580bf0251690e85120e8bf21e39c6b5ecdb8e7
parent9151bbefea3fb932eb6aa6ddb22d64b83f8149c7 (diff)
downloadcpython-14d4f68ebb495fe7ccbaf283386d861a054d8288.zip
cpython-14d4f68ebb495fe7ccbaf283386d861a054d8288.tar.gz
cpython-14d4f68ebb495fe7ccbaf283386d861a054d8288.tar.bz2
gh-97706: multiprocessing tests: Delete unused variable `rand` (#97707)
-rw-r--r--Lib/test/_test_multiprocessing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index b78586c..a35e527 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -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):