Registry / testing / nose
library1.3.7pypypi✓ verified 21d ago

Nose extends unittest to make testing easier, providing a simpler test discovery and running mechanism. Its last major release was 1.3.7 in 2015, and the project is no longer actively maintained. Users are strongly encouraged to migrate to modern alternatives like pytest.

pip install nose
INSTALL
IMPORT
SIG · NOSE
N
nose
testingpythonv1.3.7
Install
1.6s avg
Import
702ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.462s · 19.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.380s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
import nose nose.run()
TestCase
from unittest import TestCase

This example demonstrates a basic Nose test case using unittest.TestCase. Nose discovers tests by default from files named `test_*.py` or classes/functions starting with `test_`. The common way to run tests is via the `nosetests` command line tool.

import nose from unittest import TestCase class MyTest(TestCase): def test_something(self): self.assertEqual(1, 1) if __name__ == '__main__': # To run this directly without the `nosetests` command: # nose.run() # For programmatic execution, typically you'd run from command line. print("Run with: nosetests") # Example of what `nosetests` would do if run programmatically: # nose.run(argv=['', '--verbose', __file__])
nosetests --version
Debug
Known issues
breakingNose 1.3.7, the last released version, was developed primarily for Python 2. While it might partially function in some Python 3 environments, it is not officially supported and will likely encounter errors or unexpected behavior with modern Python 3 versions (3.6+).
fix
Migrate to a maintained testing framework like pytest or unittest (built-in). If forced to use Nose, ensure a Python 2.7 environment or use a specific `nose` fork with Python 3 support (e.g., `nose2`).
affects: <=1.3.7
deprecatedThe `nose` project is officially unmaintained and abandoned. Its GitHub repository prominently displays a warning encouraging users to switch to `pytest`. Expect no further updates, bug fixes, or security patches.
fix
Migrate testing suites to modern, actively maintained frameworks such as pytest or the built-in unittest module. These offer superior features, community support, and Python 3 compatibility.
affects: All versions
gotchaNose's test discovery mechanism (looking for `test_` prefixes in filenames, classes, and methods) can sometimes lead to unintended test execution or missed tests if not consistently applied. It also had specific rules for how it interacted with `__init__.py` files.
fix
Carefully review Nose's test discovery rules in its documentation. When migrating to other frameworks, understand their specific discovery rules, which might differ.
affects: All versions
Upgrade
Version history
1.3.7latest on PyPI · released Jun 2, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
nose — pip install nose · libregistry