skillfed

pynose

pynose fixes nose to extend unittest and make testing easier

pynose v1.5.5 1.1M downloads/30d#4,396 on PyPI16
Copyleft license GNU LGPL Active released

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 pynose

uv

uv add pynose

poetry

poetry add pynose

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XEnvironment :: Win32 (MS Windows)Intended Audience :: DevelopersLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Natural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing

Tags

test runner discoveryunittest extensionautomatic test collectionpython testing tooltest output capturedoctest runnertest framework
test-discoveryunittest-extensionlegacy-migration

More Testing packages