X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2Fstandalone%2Fsimple%2FPyInterp_Utils.h;h=2075e681d3efadf42450b4a89a31c374a30fe7ad;hb=76595daea917b39a1c29b3cf79d0ae95e27ab032;hp=bc97536e345a60dbf508e9d9899217943511cc47;hpb=0a28fb50781adcd0ac0f1d8d679650582eff1394;p=modules%2Fparavis.git diff --git a/test/standalone/simple/PyInterp_Utils.h b/test/standalone/simple/PyInterp_Utils.h index bc97536e..2075e681 100644 --- a/test/standalone/simple/PyInterp_Utils.h +++ b/test/standalone/simple/PyInterp_Utils.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -60,9 +60,8 @@ public: */ ~PyLockWrapper() { - PyThreadState* _currState = PyGILState_GetThisThreadState(); #ifdef _DEBUG_ - if (_currState != _state) + if (PyGILState_GetThisThreadState() != _state) { std::cout << "!!!!!!!!! PyLockWrapper inconsistency - now entering infinite loop for debugging\n"; while(1);