Skip to content

Commit 1ab1203

Browse files
Get rid of pathlib.
1 parent 5a28b4d commit 1ab1203

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_xpickle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# and Python 3.9 by running xpickle_worker.py.
44
import io
55
import os
6-
import pathlib
76
import pickle
87
import subprocess
98
import sys
@@ -116,7 +115,7 @@ def send_to_worker(python, data):
116115
Returns:
117116
The pickled data received from the child process.
118117
"""
119-
target = pathlib.Path(__file__).parent / 'xpickle_worker.py'
118+
target = os.path.join(os.path.dirname(__file__), 'xpickle_worker.py')
120119
worker = subprocess.Popen([*python, target],
121120
stdin=subprocess.PIPE,
122121
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)