Closed picca closed 1 year ago
thanks for reporting this.
I think the first one is somehow unavoidable since we do not hardcode the tests for running the examples. I see it also on the azure pipeline tests.
The second one is also not directly from our code (and does not show up on the azure pipeline tests), but must come from some imported dependency (not sure which one). It could be that the version of some dependency is different on the azure pipelines compared to the Debian test suite?!
Just for info I put here the warning observed durong the packaging of the 1.7.4 version on Debian.
cheers
=============================== warnings summary =============================== tests/test_examples.py:70 /<>/.pybuild/cpython3_3.10_xrayutilities/build/tests/test_examples.py:70: PytestCollectionWarning: cannot collect test class 'TestExampleScriptsMeta' because it has a init constructor (from: .pybuild/cpython3_3.10_xrayutilities/build/tests/test_examples.py)
class TestExampleScriptsMeta(type):
../../../../../../usr/lib/python3/dist-packages/past/builtins/misc.py:45 /usr/lib/python3/dist-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses from imp import reload
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html