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.
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 @@ def setUp(self):
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, '', '', '')