at master 951 B view raw
1From dbf0af29767629def355427cf63410158708c632 Mon Sep 17 00:00:00 2001 2From: Bot_wxt1221 <3264117476@qq.com> 3Date: Wed, 13 Nov 2024 21:15:04 +0800 4Subject: [PATCH] Update test_codegen.py 5 6--- 7 brian2/tests/test_codegen.py | 7 ------- 8 1 file changed, 7 deletions(-) 9 10diff --git a/brian2/tests/test_codegen.py b/brian2/tests/test_codegen.py 11index fdc03cdf2..6f7ae50bd 100644 12--- a/brian2/tests/test_codegen.py 13+++ b/brian2/tests/test_codegen.py 14@@ -589,13 +589,6 @@ def test_cpp_flags_support(): 15 _, compile_args = get_compiler_and_args() 16 assert compile_args == prefs["codegen.cpp.extra_compile_args"] 17 18- # Should never be supported and raise a warning 19- prefs["codegen.cpp.extra_compile_args"] = ["-invalidxyz"] 20- with catch_logs() as l: 21- _, compile_args = get_compiler_and_args() 22- assert len(l) == 1 and l[0][0] == "WARNING" 23- assert compile_args == [] 24- 25 prefs["codegen.cpp.extra_compile_args"] = old_prefs 26 27