spyder-unittest
spyder-unittest copied to clipboard
spyder-unittest crashes and locks even on restart
Description of your problem
spyder-unittest crashes and locks even on restart
What steps will reproduce the problem?
- New project
- directories src & tests_ each containing init.py
- src contains myclass.py with class MyClass1
- tests contains test_myclass,py with from
src.myclass import MyClass1
- Select Run | Run Unit tests and pick tests directory
- Crashes
- When reopen Spyder spyder-unittest window shows running tests and does not respond to stop
If I try and run the unit test from the CL directly ,python -m unittest test_myclass
, I get ModuleNotFoundError: No module named 'src' but it's found with
python -m unittest discover
Key versions and other information:
- Spyder version: 4.1.5
- Version of spyder-unittest plugin: 0.4.1
- Installation method for Spyder and the unittest plugin: Anaconda
- Python version: 3.8.5
- Testing framework used: unittest
- Testing framework version:
- Operating system: windows 10