summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2023-04-24 22:03:04 +0100
committerEli Schwartz <eschwartz93@gmail.com>2023-05-05 12:23:52 -0400
commit9fe1efe357dcdb3c0c18e84f6ac27948271f1c53 (patch)
treee8bdee3d2efb059681c9e102f76a414a5c934689
parent6834224d72011489324c71b4f2b9c982562c0796 (diff)
downloadmeson-9fe1efe357dcdb3c0c18e84f6ac27948271f1c53.tar.gz
Fix unit test that hardcoded `/` and hence broke on Windows
-rw-r--r--unittests/allplatformstests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index f48bc5167..46883dd11 100644
--- a/unittests/allplatformstests.py
+++ b/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):
@@ -3272,7 +3272,7 @@ class AllPlatformTests(BasePlatformTests):
for k in ('install_filename', 'dependencies', 'win_subsystem'):
if k in i:
del i[k]
-
+
sources = []
for j in i['target_sources']:
sources += j.get('sources', [])