spyder-unittest icon indicating copy to clipboard operation
spyder-unittest copied to clipboard

spyder-unittest crashes and locks even on restart

Open boardtc opened this issue 4 years ago • 0 comments

Description of your problem

spyder-unittest crashes and locks even on restart

What steps will reproduce the problem?

  1. New project
  2. directories src & tests_ each containing init.py
  3. src contains myclass.py with class MyClass1
  4. tests contains test_myclass,py with from src.myclass import MyClass1
  5. Select Run | Run Unit tests and pick tests directory
  6. Crashes
  7. 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

boardtc avatar Jan 27 '21 00:01 boardtc