Skip to content

Commit

Permalink
WIP - fixing end-of-run crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed Dec 9, 2024
1 parent 811421d commit 8303ceb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion lib/python_binding/test/src/external_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ std::string src_info( const std::source_location location = std::source_location
TEST_CASE( "VTX_PYTHON_BINDING - External tool test", "[integration]" )
{
using namespace VTX;
return;

App::Test::Util::PythonFixture f;

Expand Down
1 change: 0 additions & 1 deletion lib/python_binding/test/src/python_binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ void runScript( const std::string & p_scriptName, const VTX::PythonBinding::Inte
TEST_CASE( "VTX_PYTHON_BINDING - Interpretor test", "[integration][interpretor]" )
{
using namespace VTX;
return;

App::Test::Util::PythonFixture f;

Expand Down
3 changes: 1 addition & 2 deletions lib/python_binding/test/src/util/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ namespace VTX::App::Test::Util

SCENE().reset();
}
PythonFixture::~PythonFixture() { resetInterpretor(); }
PythonFixture::~PythonFixture() { INTERPRETOR().clearBinders(); }
void PythonFixture::resetInterpretor()
{
INTERPRETOR().clearBinders();
INTERPRETOR().addBinder<VTX::PythonBinding::Binding::VTXAppBinder>();
return;
}

void PythonFixture::loadSystem( const std::string & p_moleculePath )
Expand Down
1 change: 0 additions & 1 deletion lib/python_binding/test/src/vtx_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
TEST_CASE( "VTX_PYTHON_BINDING - VTX API Tests", "[integration]" )
{
using namespace VTX;
return;
App::Test::Util::PythonFixture f;

PythonBinding::Interpretor & interpretor = INTERPRETOR();
Expand Down

0 comments on commit 8303ceb

Please sign in to comment.