From 23f7bbcf9f1b02cb356ce41be41e8b851d135301 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sun, 3 Sep 2023 12:39:36 +0200 Subject: [PATCH] Fix most Python tests with Cython 3.0 Since Cython 3.0 using dots appart from the extension is a hard error. See issue: https://github.com/cython/cython/issues/2686 --- tests/tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tests.rs b/tests/tests.rs index ec389d6..d07d93e 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -202,9 +202,10 @@ fn run_compile_test( fs::create_dir_all(&generated_file).unwrap(); let style_ext = style + // Cython is sensitive to dots, so we can't include any dots. .map(|style| match style { - Style::Both => ".both", - Style::Tag => ".tag", + Style::Both => "_both", + Style::Tag => "_tag", Style::Type => "", }) .unwrap_or_default();