Skip to content

Commit fdb98c7

Browse files
committed
Fix windows tests
1 parent 85191fb commit fdb98c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_cache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
# SOFTWARE.
23+
import re
2324
import sys
2425
import os.path
2526
from types import SimpleNamespace
@@ -30,6 +31,7 @@
3031
from ducktools.pythonfinder.shared import DetailFinder, PythonInstall
3132

3233
fake_python_path = "/path/to/python" if sys.platform != "win32" else r"X:\path\to\python"
34+
json_python_path = re.escape(fake_python_path)
3335
example_json = f"""
3436
{{
3537
"version": [3, 13, 2, "final", 0],

0 commit comments

Comments
 (0)