-// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
verifyWrongPycode(code_py, "f", "not accepted statement");
}
+/* // This is now accepted
void Py2yacsTest::unaccepted_statement2()
{
const char * code_py = "def f(a):\n"
"if __name__ == '__main__':"
" print('toto')\n";
verifyWrongPycode(code_py, "f", "not accepted statement");
-}
+}*/
void Py2yacsTest::unaccepted_return()
{
CPPUNIT_ASSERT(pyVal);
CPPUNIT_ASSERT(PyFloat_Check(pyVal));
CPPUNIT_ASSERT_DOUBLES_EQUAL(42., PyFloat_AsDouble(pyVal), 1.E-12);
+ p->shutdown(10); // kill all the containers
}
// Test the behaviour when there is an error in the python parser