summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-10-31 02:15:38 (GMT)
committerGitHub <noreply@github.com>2020-10-31 02:15:38 (GMT)
commit43ca084c88d1e46a44199f347c72e26db84903c9 (patch)
treee2353d496893ee141bf5b3d2a0f523d3fe6d9db1 /Lib/test/test_tempfile.py
parentb62bdf71ea0cd52041d49691d8ae3dc645bd48e1 (diff)
downloadcpython-43ca084c88d1e46a44199f347c72e26db84903c9.zip
cpython-43ca084c88d1e46a44199f347c72e26db84903c9.tar.gz
cpython-43ca084c88d1e46a44199f347c72e26db84903c9.tar.bz2
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 8e409cebad42032bb7d0f2cadd8b1e36081d98af.
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 77d710e..8ace883 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -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, '', '', '')