From bac988e0e651f48b6f2d12e398a7553312014df0 Mon Sep 17 00:00:00 2001 From: yusufipk Date: Sun, 16 Aug 2026 14:13:12 +0300 Subject: [PATCH] Ask for the entry point by its parts, not by a slash The assertion spelled the path with a forward slash, which is not the separator Windows joins with. The Windows job this branch adds is the first to run it there. --- tests/test_ipc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_ipc.py b/tests/test_ipc.py index a95cb8b..97d0373 100644 --- a/tests/test_ipc.py +++ b/tests/test_ipc.py @@ -7,6 +7,7 @@ answers by saying nothing at all. import json import os +import pathlib import sys import unittest from unittest import mock @@ -57,7 +58,10 @@ class FakeSocket: class Paths(unittest.TestCase): def test_script_path_points_at_dikte(self): - self.assertTrue(ipc.script_path().endswith("dikte/__main__.py")) + # By its parts rather than as a string: the separator is a backslash on + # Windows, and the path is what a shortcut there runs too. + path = pathlib.Path(ipc.script_path()) + self.assertEqual(path.parts[-2:], ("dikte", "__main__.py")) self.assertTrue(os.path.exists(ipc.script_path())) def test_the_shortcut_command_runs_it_with_this_interpreter(self):