summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-16 07:51:18 (GMT)
committerGitHub <noreply@github.com>2024-05-16 07:51:18 (GMT)
commit1dc7fcd8039ec09a49002827eb7f55b02741d927 (patch)
tree6ce259bf7cd66eac2bbad1817aec0b7e769908da /Lib/test/_test_multiprocessing.py
parentbca7fb0e7af8c357d4327d76ed5393d8bfa21d92 (diff)
downloadcpython-1dc7fcd8039ec09a49002827eb7f55b02741d927.zip
cpython-1dc7fcd8039ec09a49002827eb7f55b02741d927.tar.gz
cpython-1dc7fcd8039ec09a49002827eb7f55b02741d927.tar.bz2
[3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087)
(cherry picked from commit 0152dc4ff5534fa2948b95262e70ff6b202b9b99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r--Lib/test/_test_multiprocessing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 46afdfc..f126b67 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -22,7 +22,6 @@ import logging
import subprocess
import struct
import operator
-import pathlib
import pickle
import weakref
import warnings
@@ -324,8 +323,9 @@ class _TestProcess(BaseTestCase):
self.skipTest(f'test not appropriate for {self.TYPE}')
paths = [
sys.executable, # str
- sys.executable.encode(), # bytes
- pathlib.Path(sys.executable) # os.PathLike
+ os.fsencode(sys.executable), # bytes
+ os_helper.FakePath(sys.executable), # os.PathLike
+ os_helper.FakePath(os.fsencode(sys.executable)), # os.PathLike bytes
]
for path in paths:
self.set_executable(path)