Switch the unit test runner to pytest.

Review Request #11912 — Created Jan. 9, 2022 and submitted

Information

kgb
master

Reviewers

kgb

Historically, the kgb unit tests made use of nose as the test runner.
Unfortunately, nose 1.x is no longer maintained and is incompatible
with modern versions of Python 3. The forks are no better, and nose2
is a very different library.

This change moves the codebase over to pytest. This is a much more
modern test runner with a lot of interesting capabilities and a wide
ecosystem of plugins.

Developers can now run pytest directly to run the test suite. The old
./tests/runtests.py still works, but is deprecated, and merely wraps
pytest anyway.

Unit tests pass on all supported versions of Python.

Summary ID
Switch the unit test runner to pytest.
Historically, the kgb unit tests made use of `nose` as the test runner. Unfortunately, `nose` 1.x is no longer maintained and is incompatible with modern versions of Python 3. The forks are no better, and `nose2` is a very different library. This change moves the codebase over to `pytest`. This is a much more modern test runner with a lot of interesting capabilities and a wide ecosystem of plugins. Developers can now run `pytest` directly to run the test suite. The old `./tests/runtests.py` still works, but is deprecated, and merely wraps `pytest` anyway.
ab1a53cfd652600a11b11c9f69bb589c5bfb077f
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (2116eff)