Use std::shared_ptr<Python> for Python argument in Schedule

This commit is contained in:
Joakim Hove
2020-03-31 10:26:55 +02:00
parent cebef15dc4
commit 5444eade2f
46 changed files with 191 additions and 180 deletions

View File

@@ -34,7 +34,7 @@ inline std::string pathprefix() {
BOOST_AUTO_TEST_CASE(MULTFLT_IN_SCHEDULE) {
Parser parser;
Python python;
auto python = std::make_shared<Python>();
std::string scheduleFile(pathprefix() + "TRANS/Deck1");
ParseContext parseContext;
auto deck = parser.parseFile(scheduleFile);