Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent e72833e commit db3dc13
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/TestMethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db3dc13

Please sign in to comment.