Closed kevinsmia1939 closed 4 years ago
I'm pretty sure this is because you are missing pytest-xdist, which @tjof2 introduced in #2520 for parallel execution of tests. I'm on mobile so I'm a bit slow in checking whether we've added the above to the dev package dependencies.
From the docs https://hyperspy.readthedocs.io/en/latest/dev_guide/testing.html#running-tests
First ensure pytest and its plugins are installed by:
# If using a standard hyperspy install
$ pip install hyperspy[tests]
The dependencies are listed here: https://github.com/hyperspy/hyperspy/blob/912fc5776c0f8c604cb339332760b3cbd0058386/setup.py#L81
An ugly hack is to override the config in setup.cfg
, e.g. pytest -c /dev/null hyperspy/
- so it looks elsewhere for the config. Would not recommend though.
Hello,
Thanks, the test is working now. I also noticed that test need matplotlib>=3.1 but install need matplotlib>=2.2.3. Is this a conflict?
Thank you.
Hello,
I was just testing upcoming 1.6.1 because I want to package it to openSUSE Tumbleweed. I am aware that 1.6.1 is not release but I just want to check that it came out smoothly. I build hyperspy 1.6.1 from the latest snapshot next_minor and next_patch branch. I found Pytest error as shown below.
This error both occurred on next_minor and next_patch branch.
Have this error been made aware of? If so I don't have anything to add.
Full build log: https://build.opensuse.org/package/live_build_log/home:andythe_great/python-hyperspy/openSUSE_Tumbleweed/x86_64
All Python dependencies installed