Environment:Ubuntu 19.04, Python 3.7
I am using the Orekit Python wrapper by Petrus Hyvönen . I am running into errors & warnings when trying to run tests with doctest. When collecting tests, it analyzes the classes (all the 1000+ wrapped Java classes it seems) and runs into the following error:
In doctest (https://github.com/python/cpython/blob/master/Lib/doctest.py#L959), the
condition at line 959 returns `True`, and therefore doctest tries to access the object's _module_ attribute, which does not seem to exist.
Besides, pytest prints a warning for each Java class being wrapped, also because they have no _module_ attribute (this is one example of 1000+ warnings):
This phenomenon is new because 6 months ago I could run pytest & doctest successfully with Orekit. I could not find which module contains the change that broke stuff since then though.
To reproduce the phenomenon, you can check out https://github.com/GorgiAstro/poliastro/blob/orekit-validation/src/poliastro/tests/tests_twobody/test_propagation.py#L164
I was trying to validate some poliastro features using the Orekit python wrapper. So this code requires poliastro, it is available on conda-forge.