From a53dcd6f61020efb495600123d27fa53ea0b2455 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Mon, 24 Apr 2023 22:03:04 +0100 Subject: [PATCH] Fix unit test that hardcoded `/` and hence broke on Windows --- unittests/allplatformstests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index a8ec787b8..a6bddafa7 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -855,9 +855,9 @@ class AllPlatformTests(BasePlatformTests): if "includestuff.pyx.c" in generated_source: name = generated_source break - # Split the path (we only want the includestuff.cpython-blahblahblah) - name = os.path.normpath(name).split("/")[-2:] - name = "/".join(name) # Glue list into a string + # Split the path (we only want the includestuff.cpython-blahblah.so.p/includestuff.pyx.c) + name = os.path.normpath(name).split(os.sep)[-2:] + name = os.sep.join(name) # Glue list into a string self.build(target=name) def test_build_pyx_depfiles(self):