# nose to pytest: Status and Migration Path | gen2.dev

> nose has had no release since 2015 and pytest 8.0 removed its nose support. What the nose documentation says, and how tests are converted to pytest.

Source: https://gen2.dev/successors/nose/

---

Successor Map · Testing

# nose to pytest: a test runner with no release since 2015

The nose documentation says the project has been in maintenance mode for years and will likely cease without new maintainers. Its last release is from 2015, and pytest, which used to run nose-style tests, removed that support in version 8.0.

![Slide: nose on the left, an arrow, and pytest on the right.](https://gen2.dev/img/successor-nose.png)

Status of the old tool

Maintenance only

Effort to move

Mechanical

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![nose logo](https://gen2.dev/icons/tech/nose.png)nose, the Python test runner that extends unittest

Gen 2

![pytest logo](https://gen2.dev/icons/tech/pytest.png)pytest

Kind of tool

[Testing](https://gen2.dev/successors/testing/)

Status of Gen 1

Maintenance only The nose documentation says nose has been in maintenance mode for the past several years, and PyPI lists its latest release, 1.3.7, on Jun 2, 2015.

Effort to move

Mechanical: same ideas, different calls

What breaks

Plain setup and teardown methods, the with\_setup decorator and nose.tools assertions stop working once nose is gone, because pytest 8.0 removed its nose support.

Should you move?

Move when convenient No fetched page states that nose fails on current Python, so this is not marked urgent, but a runner with no release since 2015 should be replaced the next time the tests are touched. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [6 sources](#sources)

## Gen 1 and Gen 2 side by side

PyPI

![nose logo](https://gen2.dev/icons/tech/nose.png)Gen 1

![pytest logo](https://gen2.dev/icons/tech/pytest.png)Gen 2

Package

[nose](https://pypi.org/project/nose/)

[pytest](https://pypi.org/project/pytest/)

Latest version

1.3.7

9.2.0

Latest release

Jun 2, 2015

Oct 27, 2026

First release

Dec 14, 2010

Nov 25, 2010

License

GNU LGPL

MIT

Downloads, last week

1,222,436

225,930,660

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

## What Gen 1 was

"nose extends unittest to make testing easier." That is the first line of its documentation, and for years it was the usual way to run Python tests without writing a class for each one.

The same page carries a note about the project's state: "Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership." PyPI lists the latest release, 1.3.7, on Jun 2, 2015.

## What replaced it

pytest. The nose documentation itself says, "New projects should consider using Nose2, py.test, or just plain unittest/unittest2."

nose2 exists and "originated as the successor to nose," but its own documentation calls pytest "an excellent test framework" and encourages users to consider it for new projects.

## What moving involves

There used to be a halfway house. pytest could run many nose-style tests unchanged. That support was deprecated in pytest 7.2 and removed in 8.0. The pytest documentation gives the reasons: nose "has been in maintenance mode-only for years," and maintaining the plugin was not trivial because it spilled over the code base.

So the tests have to be converted. The mapping is predictable:

-   **Assertions.** nose2pytest is a script that "transforms `nose.tools.assert_*` function calls into raw assert statements."
-   **Setup and teardown.** Plain `setup` and `teardown` methods were part of the nose support, not native pytest. Rename them to `setup_method` and `teardown_method`.
-   **`@with_setup`.** Port it to a pytest fixture, with the setup before a `yield` and the teardown after it.

## What breaks

The converter does not finish the job. Its README lists what is left:

-   `assert_raises` and `assert_warns` are not transformed. Replace them with `pytest.raises` and `pytest.warns`.
-   Import statements for `nose.tools` are not converted, "as there are too many possibilities."
-   nose functions used as context managers cannot become raw assertions.

Older pytest versions already had gaps: `yield`\-based test methods have been unsupported since pytest 4.1.0, nose-style doctests were not collected correctly, and nose configuration was never recognized. Check the test count before and after. A test that is silently no longer collected looks exactly like a test that passes.

When the last test is converted, remove nose from the requirements. [Killing Gen 1](https://gen2.dev/guide/killing-gen-1/) is a step of its own, and a leftover import keeps the old dependency installed.

## Should you move?

Move the next time you work on the test suite. This is not marked as urgent only because no source read for this page states that nose fails on current Python; the project's own documentation says its maintenance will likely cease, and its last release is from 2015.

The exception is a frozen codebase on an old interpreter that will never be upgraded. Everyone else is one Python or pytest upgrade away from being forced, and a planned conversion is cheaper than a forced one.

## Common questions

### Is nose dead?

Not yet. It is in maintenance only. The nose documentation says nose has been in maintenance mode for the past several years, and PyPI lists its latest release, 1.3.7, on Jun 2, 2015.

### What replaced nose?

pytest. Effort to move: Mechanical: same ideas, different calls

### Should I move off nose?

gen2.dev's view: Move when convenient. No fetched page states that nose fails on current Python, so this is not marked urgent, but a runner with no release since 2015 should be replaced the next time the tests are touched.

## Sources

1.  [nose 1.3.7 documentation - nose.readthedocs.io](https://nose.readthedocs.io/en/latest/) - The note that nose has been in maintenance mode for the past several years and that new projects should consider Nose2, py.test or plain unittest.
2.  [nose - PyPI](https://pypi.org/project/nose/) - Lists 1.3.7 as the latest version, released Jun 2, 2015.
3.  [Deprecations and Removals - pytest documentation](https://docs.pytest.org/en/stable/deprecations.html) - Support for tests written for nose was deprecated in 7.2 and removed in 8.0, with the reasons and the replacements for setup, teardown and with\_setup.
4.  [How to run tests written for nose - pytest 7.4 documentation](https://docs.pytest.org/en/7.4.x/how-to/nose.html) - The nose idioms pytest 7 supported, the ones it did not, and the pointer to nose2pytest.
5.  [nose2pytest README - GitHub](https://github.com/pytest-dev/nose2pytest) - What the converter rewrites, what it leaves alone, and its limitations.
6.  [nose2 documentation - docs.nose2.io](https://docs.nose2.io/en/latest/) - Says nose2 originated as the successor to nose and encourages users to consider pytest for new projects.
7.  [nose - PyPI](https://pypi.org/project/nose/) - latest version, release dates, license and last week's downloads, read on November 29, 2026
8.  [pytest - PyPI](https://pypi.org/project/pytest/) - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Killing Gen 1](https://gen2.dev/guide/killing-gen-1/)

[All successor entries](https://gen2.dev/successors/)

## More in Testing

-    [![Enzyme logo](https://gen2.dev/icons/tech/enzyme.png) Enzyme to React Testing Library Still active A real project Move when convenient](https://gen2.dev/successors/enzyme/)
-    [![Jest logo](https://gen2.dev/icons/tech/jest.png) Jest to Vitest Still active Mechanical Leave it](https://gen2.dev/successors/jest/)
-    [![JMeter logo](https://gen2.dev/icons/tech/jmeter.png) JMeter to k6 Still active A real project Leave it](https://gen2.dev/successors/jmeter/)
-    [![Karma logo](https://gen2.dev/icons/tech/karma.png) Karma to Jest, Web Test Runner or Vitest Deprecated A real project Move when convenient](https://gen2.dev/successors/karma/)
-    [![PhantomJS logo](https://gen2.dev/icons/tech/phantomjs.png) PhantomJS to headless Chrome and Playwright Abandoned Mechanical Move now](https://gen2.dev/successors/phantomjs/)
-    [![Protractor logo](https://gen2.dev/icons/tech/protractor.png) Protractor to Playwright or Cypress Abandoned A real project Move now](https://gen2.dev/successors/protractor/)
-    [![Selenium Grid logo](https://gen2.dev/icons/tech/selenium.png) Selenium Grid to Playwright Still active A real project Leave it](https://gen2.dev/successors/selenium/)

[All testing](https://gen2.dev/successors/testing/)
