Skip to content

Commit 8402e00

Browse files
committed
Reset the Config.capsul_engine to None in tearDownClass for UTs
1 parent ee0020e commit 8402e00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

populse_mia/tests/run_mia_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,12 @@ def tearDownClass(cls):
772772
if os.path.exists(cls.project_path):
773773
shutil.rmtree(cls.project_path)
774774

775+
# Reset the engine and clear the cache
776+
if Config.capsul_engine is not None:
777+
Config.capsul_engine = None
778+
# Clear the cache so next call will recreate the engine
779+
Config.get_capsul_engine.cache_clear()
780+
775781
cls._app.quit()
776782
del cls._app
777783

0 commit comments

Comments
 (0)