We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a28b4d commit 1ab1203Copy full SHA for 1ab1203
Lib/test/test_xpickle.py
@@ -3,7 +3,6 @@
3
# and Python 3.9 by running xpickle_worker.py.
4
import io
5
import os
6
-import pathlib
7
import pickle
8
import subprocess
9
import sys
@@ -116,7 +115,7 @@ def send_to_worker(python, data):
116
115
Returns:
117
The pickled data received from the child process.
118
"""
119
- target = pathlib.Path(__file__).parent / 'xpickle_worker.py'
+ target = os.path.join(os.path.dirname(__file__), 'xpickle_worker.py')
120
worker = subprocess.Popen([*python, target],
121
stdin=subprocess.PIPE,
122
stdout=subprocess.PIPE,
0 commit comments