From d639fbf61c7f8fd813fe63375e6598d12476afd3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:25:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test/TestMethods.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/test/TestMethods.py b/test/TestMethods.py index 66c91de..ea24437 100644 --- a/test/TestMethods.py +++ b/test/TestMethods.py @@ -102,16 +102,18 @@ def abstract_program_test(self, path, test_scopes=False): interpreter.interpret() self.assertEqual( - interpreter.GLOBAL_SCOPE - if not test_scopes - else [ - [ - scope.scope_name, - scope.scope_level, - scope.enclosing_scope.scope_name if scope.enclosing_scope else None, + ( + interpreter.GLOBAL_SCOPE + if not test_scopes + else [ + [ + scope.scope_name, + scope.scope_level, + scope.enclosing_scope.scope_name if scope.enclosing_scope else None, + ] + for scope in interpreter.semantic_analyzer.scopes ] - for scope in interpreter.semantic_analyzer.scopes - ], + ), global_scope, ) self.delete(path)