Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spyder-unittest crashes and locks even on restart #162

Open
boardtc opened this issue Jan 27, 2021 · 0 comments
Open

spyder-unittest crashes and locks even on restart #162

boardtc opened this issue Jan 27, 2021 · 0 comments

Comments

@boardtc
Copy link

boardtc commented Jan 27, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant