Merge pull request #1662 from joakim-hove/fix-non-python

Fix codepath for non-python
This commit is contained in:
Joakim Hove
2020-03-31 17:18:02 +02:00
committed by GitHub

View File

@@ -37,7 +37,7 @@ using namespace Opm;
#ifndef EMBEDDED_PYTHON
BOOST_AUTO_TEST_CASE(INSTANTIATE) {
auto python = std::make_shared<Python>();
Python python;
BOOST_CHECK(!python.enabled());
BOOST_CHECK_THROW(python.exec("print('Hello world')"), std::logic_error);
BOOST_CHECK(! Python::supported() );