Skip to content

Commit

Permalink
add test for and fix namede exceptions : GH #137
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jan 14, 2025
1 parent cfb57f0 commit b57e8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_asteval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1590,11 +1590,11 @@ def my_func(x, y):

@pytest.mark.parametrize("nested", [False, True])
def test_naming_exceptions(nested):
""" fixing Github issue #137"
""" fixing Github issue #137"""
interp = make_interpreter(nested_symtable=nested)
try_with_named_error = textwrap.dedent("""
try:
2 + ''
2 + ''
except Exception as my_error:
print(my_error)
""")
Expand Down

0 comments on commit b57e8c0

Please sign in to comment.