Skip to content

Commit

Permalink
gh-97706: multiprocessing tests: Delete unused variable rand (#97707)
Browse files Browse the repository at this point in the history
  • Loading branch information
saito828koki authored Oct 3, 2022
1 parent 9151bbe commit 14d4f68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5289,13 +5289,12 @@ def test_resource_tracker(self):
# 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):
Expand Down

0 comments on commit 14d4f68

Please sign in to comment.