dkriegner / xrayutilities

xrayutilities - a package with useful scripts for X-ray diffraction physicists
http://xrayutilities.sourceforge.io
GNU General Public License v2.0
81 stars 29 forks source link

1.7.4 warning during the Debian build process (test) #143

Closed picca closed 1 year ago

picca commented 1 year ago

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

dkriegner commented 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?!