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
This commit is contained in:
Jonathan Schwender
2023-09-03 12:39:36 +02:00
committed by Emilio Cobos Álvarez
parent 5f235ec199
commit 23f7bbcf9f
+3 -2
View File
@@ -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();