]> SALOME platform Git repositories - modules/yacs.git/commit - src/yacsloader_swig/Test/testSaveLoadRun.py
Salome HOME
fix YacsLoaderTest_swig: abort at the end of python -m unittest discover, in runUnitT...
authorPaul RASCLE <paul.rascle@edf.fr>
Sat, 13 Jan 2018 13:44:54 +0000 (14:44 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Sat, 13 Jan 2018 13:44:54 +0000 (14:44 +0100)
commita58acdc84f346ebd77a5b5ddd7a33ec8116b48e7
treef97a0c3576617570939a61db9263e23a469bea0e
parente41351582d47d960d682e138f8137edcce783652
fix YacsLoaderTest_swig: abort at the end of python -m unittest discover, in runUnitTests.sh.
test15 in testSaveLadRun.py leads to a decrement on ref count visible only at the end on garbage collection.
The decrement is visible on PythonNode.cxx when activating trace with _DEVDEBUG_.
The decrement is related to the use of get() on output port instead of getPyObj() (see comment on PythonPorts.hxx).
Should we remove the use of get() in SWIG or correct it in SWIG ?
Use of get() as it is in Python leads to a potential abort later...
src/yacsloader_swig/Test/testSaveLoadRun.py