From 2adaf0c3d81e7ffe175e50b27de8df36b3a18b87 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Mon, 8 Jul 2019 18:50:33 -0500 Subject: [PATCH] deprecation checking shouldnt affect other parts of code --- test/test_pymbolic.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_pymbolic.py b/test/test_pymbolic.py index 3c79be2..0bd708c 100644 --- a/test/test_pymbolic.py +++ b/test/test_pymbolic.py @@ -284,9 +284,7 @@ def test_parser(): assert_parsed_same_as_python("0 if 1 if 2 else 3 else 4") assert_parsed_same_as_python("0 if (1 if 2 else 3) else 4") - with pytest.warns(DeprecationWarning): - import warnings - warnings.simplefilter("always") + with pytest.deprecated_call(): parse('1+if(0, 1, 2)') # }}} -- GitLab