From a85157e2285feea2a202a7b8b4b904ae4c6650c6 Mon Sep 17 00:00:00 2001 From: Icxolu <10486322+Icxolu@users.noreply.github.com> Date: Thu, 7 Mar 2024 19:31:16 +0100 Subject: [PATCH] run `deprecated` ui test only when `gil-refs` as disabled --- tests/test_compile_error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_compile_error.rs b/tests/test_compile_error.rs index f5fbec7a533..3f1052c3077 100644 --- a/tests/test_compile_error.rs +++ b/tests/test_compile_error.rs @@ -18,6 +18,7 @@ fn test_compile_errors() { t.compile_fail("tests/ui/invalid_pymethod_names.rs"); t.compile_fail("tests/ui/invalid_pymodule_args.rs"); t.compile_fail("tests/ui/reject_generics.rs"); + #[cfg(not(feature = "gil-refs"))] t.compile_fail("tests/ui/deprecations.rs"); t.compile_fail("tests/ui/invalid_closure.rs"); t.compile_fail("tests/ui/pyclass_send.rs");