From ff888019fe3573591d5f668a87e5e5624a0c2970 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sun, 3 Sep 2023 12:42:31 +0200 Subject: [PATCH] Allow Warnings in Cython tests Cython 3.0 deprecated `IF` and `DEF`. Until this is fixed allow warnings in our `Cython` tests. Background: https://github.com/cython/cython/issues/4310 Note the warnings will become hard errors in the future. --- tests/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index d07d93e..b0ee79c 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -167,7 +167,9 @@ fn compile( Language::Cython => { command.arg("-Wextra"); if !skip_warning_as_error { - command.arg("-Werror"); + // Our tests contain code that is deprecated in Cython 3.0. + // Allowing warnings buys a little time. + // command.arg("-Werror"); } command.arg("-3"); command.arg("-o").arg(&object);