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

1.1
Ralf Gommers 2 years ago committed by Nirbheek Chauhan
parent 795e39b3ac
commit a53dcd6f61
  1. 6
      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):

Loading…
Cancel
Save