From 430569893b26f4d942c45cb14930891bd26a7b33 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Tue, 21 Jan 2025 07:28:16 +0100 Subject: [PATCH] Fix CI quality --- tests/test_python_interpreter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_python_interpreter.py b/tests/test_python_interpreter.py index 4e368dadd..9ad661f78 100644 --- a/tests/test_python_interpreter.py +++ b/tests/test_python_interpreter.py @@ -916,9 +916,7 @@ def test_close_matches_subscript(self): code = 'capitals = {"Czech Republic": "Prague", "Monaco": "Monaco", "Bhutan": "Thimphu"};capitals["Butan"]' with pytest.raises(Exception) as e: evaluate_python_code(code) - assert "Maybe you meant one of these indexes instead" in str( - e - ) and "['Bhutan']" in str(e).replace("\\", "") + assert "Maybe you meant one of these indexes instead" in str(e) and "['Bhutan']" in str(e).replace("\\", "") def test_dangerous_builtins_calls_are_blocked(self): unsafe_code = "import os"