Salome HOME
updated copyright message
[modules/yacs.git] / src / py2yacs / Test / Py2yacsTest.cxx
index fe4ff4ce5cba80e963d6127f563fd0468b749a34..9909f4146710e6a929c4b938727997c023a9f5b3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2019  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
@@ -220,6 +220,7 @@ void Py2yacsTest::unaccepted_statement()
   verifyWrongPycode(code_py, "f", "not accepted statement");
 }
 
+/* // This is now accepted
 void Py2yacsTest::unaccepted_statement2()
 {
   const char * code_py = "def f(a):\n"
@@ -227,7 +228,7 @@ void Py2yacsTest::unaccepted_statement2()
                          "if __name__ == '__main__':"
                          "  print('toto')\n";
   verifyWrongPycode(code_py, "f", "not accepted statement");
-}
+}*/
 
 void Py2yacsTest::unaccepted_return()
 {
@@ -298,6 +299,7 @@ void Py2yacsTest::schemaExec()
   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