Skip to content

spyder-unittest crashes and locks even on restart #162

@boardtc

Description

@boardtc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions