Skip to content

Commit

Permalink
Fix codegen tests (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored May 28, 2021
1 parent 8c63fe2 commit 7f90c0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration_tests/test_codegen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import importlib
import pkgutil
import sys
from contextlib import suppress
from os.path import dirname, join
from shutil import rmtree
from unittest import IsolatedAsyncioTestCase
Expand Down Expand Up @@ -52,7 +53,9 @@ async def test_codegen(self):

import_submodules(config.package)
except Exception as exc:
rmtree('tmp_test_dipdup')
with suppress(FileNotFoundError):
rmtree('tmp_test_dipdup')
raise exc
else:
rmtree('tmp_test_dipdup')
with suppress(FileNotFoundError):
rmtree('tmp_test_dipdup')

0 comments on commit 7f90c0e

Please sign in to comment.