From 68e779a827b285c5bfeb8d913ed0e3ef16ef237f Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 31 Mar 2020 10:46:17 +0200 Subject: [PATCH] Use std::shared_ptr for Python handle --- tests/test_eclblackoilfluidsystem.cpp | 2 +- tests/test_eclblackoilpvt.cpp | 2 +- tests/test_fluidsystems.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_eclblackoilfluidsystem.cpp b/tests/test_eclblackoilfluidsystem.cpp index 3919921a1..f13cf4f55 100644 --- a/tests/test_eclblackoilfluidsystem.cpp +++ b/tests/test_eclblackoilfluidsystem.cpp @@ -632,7 +632,7 @@ inline void testAll() Opm::Parser parser; auto deck = parser.parseString(deckString1); - Opm::Python python; + auto python = std::make_shared(); Opm::EclipseState eclState(deck); Opm::Schedule schedule(deck, eclState, python); diff --git a/tests/test_eclblackoilpvt.cpp b/tests/test_eclblackoilpvt.cpp index 91154cf92..cc05001f9 100644 --- a/tests/test_eclblackoilpvt.cpp +++ b/tests/test_eclblackoilpvt.cpp @@ -224,7 +224,7 @@ inline void testAll() static const Scalar tolerance = std::numeric_limits::epsilon()*1e3; Opm::Parser parser; - Opm::Python python; + auto python = std::make_shared(); auto deck = parser.parseString(deckString1); Opm::EclipseState eclState(deck); diff --git a/tests/test_fluidsystems.cpp b/tests/test_fluidsystems.cpp index 2862b3240..5586f39c8 100644 --- a/tests/test_fluidsystems.cpp +++ b/tests/test_fluidsystems.cpp @@ -75,7 +75,7 @@ void ensureBlackoilApi() // that they compile while (false) { #if HAVE_ECL_INPUT - Opm::Python python; + auto python = std::make_shared(); Opm::Deck deck; Opm::EclipseState eclState(deck); Opm::Schedule schedule(deck, eclState, python);