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:
committed by
Emilio Cobos Álvarez
parent
5f235ec199
commit
23f7bbcf9f
+3
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user