Fix unit test that hardcoded `/` and hence broke on Windows

pull/11774/head
Ralf Gommers 2 years ago committed by Eli Schwartz
parent 6834224d72
commit 9fe1efe357
  1. 6
      unittests/allplatformstests.py

@ -856,9 +856,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):

Loading…
Cancel
Save