mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Revert "bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)"
`_RandomNameSequence` is not true singleton so using `os.register_at_fork` doesn't make sense unlike `random._inst`.
This reverts commit 8e409cebad.
This commit is contained in:
parent
b62bdf71ea
commit
43ca084c88
3 changed files with 14 additions and 13 deletions
|
|
@ -153,8 +153,8 @@ class TestRandomNameSequence(BaseTestCase):
|
|||
self.r = tempfile._RandomNameSequence()
|
||||
super().setUp()
|
||||
|
||||
def test_get_eight_char_str(self):
|
||||
# _RandomNameSequence returns a eight-character string
|
||||
def test_get_six_char_str(self):
|
||||
# _RandomNameSequence returns a six-character string
|
||||
s = next(self.r)
|
||||
self.nameCheck(s, '', '', '')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue