pynose
pynose fixes nose to extend unittest and make testing easier
What it is and what it does
pynose is a maintained fork that extends unittest with automatic test discovery and flexible test selection. It fixes multiple compatibility issues that broke the original version under modern Python—including AttributeError from deprecated collections.Callable and inspect.getargspec, ImportError from unittest internals, and deprecation warnings from pkg_resources. The package replaces the obsolete imp module with importlib and adds features like --capture-logs, --logging-init, and --capture-output for controlling test output verbosity.
Developers use pynose to run tests via command-line tools, which automatically discover test files and functions matching naming patterns, run them with unittest semantics, and capture stdout and logging output from failing tests for debugging. Configuration can be set via command-line flags, .noserc files, or setup.cfg. The package supports plugins for doctest, code coverage, and profiling, and runs on Python 3.7 through 3.14 across Windows, macOS, and Linux.
Use it for:
- Migrate legacy test suites to modern Python without rewriting tests or switching frameworks.
- Run tests with automatic discovery and flexible selection by file, module, or test case name.
- Debug failing tests by capturing and displaying print() output and log messages alongside failures.
- Configure test behavior via .noserc or setup.cfg files instead of repeating command-line options.
- Use doctest, coverage, or profiling plugins to extend test capabilities without modifying test code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pynose is an updated test runner that extends unittest with automatic test discovery, flexible test selection, and output capture—fixing compatibility issues for modern Python versions.
Yes. pynose is worth installing if you have an existing test suite or prefer its discovery and output-capture model. It is actively maintained, has no runtime dependencies, installs easily, and fixes all known compatibility issues with modern Python. The copyleft license (GNU LGPL) is not a barrier for most open-source projects but should be reviewed by proprietary teams. No known vulnerabilities.
Install
pynose on PyPI
pip
pip install pynoseuv
uv add pynosepoetry
poetry add pynoseInstalling pynose
Before you install
Low install friction with no runtime dependencies. Actively maintained as of 2026-06-01 with recent releases; compatible with Python 3.7 through 3.14.
License in practice
Licensed under GNU LGPL (copyleft). Any derivative work or modification must be distributed under the same or compatible copyleft license; proprietary projects should review copyleft obligations before use.
Quickstart
pip install pynose
# Run tests in current directory
pynose
# Or use the nosetests command
nosetests [options] [test files or directories]
# Or import in a script
import pynose
Requires Python 3.7 or later.
Verify before relying
- Whether the package maintains full backward compatibility with plugins written for the original nose.
- Performance characteristics compared to other test discovery tools for large test suites.
- Specific details on which plugins are included or supported by default.
Package facts
| License | GNU LGPL (copyleft) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 340 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,080,380/month — #4,396 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pynose-1.5.5-py3-none-any.whl
Keywords: test, unittest, doctest, automatic, discovery
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
nosenose extends unittest with automatic test…
copyleft · top 5,000 on PyPI
nose-py3nose-py3 extends unittest with automatic test…
copyleft · top 15,000 on PyPI
nose2nose2 is a test runner that extends Python's…
permissive · top 15,000 on PyPI
django-noseIntegrates the nose test runner into Django's…
permissive · top 15,000 on PyPI
snapshottestSnapshot testing library that captures API…
permissive · top 15,000 on PyPI
testscenariostestscenarios extends Python's unittest to run…
permissive · top 15,000 on PyPI
nosexcoverGenerates Cobertura-style XML coverage reports…
permissive · top 15,000 on PyPI
parameterizedParameterized testing decorator that works with…
permissive · top 5,000 on PyPI
html-testRunnerA unittest test runner that generates…
permissive · top 15,000 on PyPI
tap.pyProvides tools to parse, generate, and work…
permissive · top 15,000 on PyPI