From db3dc1335fad471c4dc8844088da99a0b667da43 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:24:40 +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)