Skip to content

Commit

Permalink
test: missed cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 27, 2024
1 parent 1a1682f commit e0fa133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/functional/test_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ def __init__(self):
list(compilers.compile([new_contract_0, new_contract_1], project=project_with_contract))

finally:
if mock_compiler.ext in compilers.__dict__.get("registered_compilers", {}):
del compilers.__dict__["registered_compilers"][mock_compiler.ext]
for ext in (mock_compiler.ext, second_mock_compiler.ext):
if ext in compilers.__dict__.get("registered_compilers", {}):
del compilers.__dict__["registered_compilers"][ext]


def test_compile_source(compilers):
Expand Down

0 comments on commit e0fa133

Please sign in to comment.