{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Backports unittest features from Python 2.7 and later versions to earlier Python releases, allowing use of modern testing assertions and test discovery on older Python versions.","skillfed_tags":["legacy-python","abandoned"],"use_cases":["Maintaining test suites on Python 2.6 systems that need modern assertion methods without upgrading the Python version.","Running test discovery on legacy Python versions before 2.7 introduced the feature natively.","Using assertRaises as a context manager on Python 2.6 codebases.","Accessing class-level and module-level test fixtures on older Python releases."],"what_it_does":"unittest2 is a backport of unittest improvements introduced in Python 2.7 and later versions, designed to run on older Python releases. It provides a drop-in replacement for the standard unittest module by allowing you to import unittest2 instead of unittest, giving access to modern testing features on legacy Python versions.\n\nThe package includes enhancements such as additional assert methods with better comparison defaults, assertRaises as a context manager, test discovery, class and module-level fixtures (setUpClass, tearDownClass, setUpModule, tearDownModule), test skipping, and improved command-line tools via the unit2 script. It has no runtime dependencies and installs as a pure Python wheel.","worth_installing":"No. The package has been abandoned since 2015 and targets Python versions that reached end-of-life over a decade ago. Modern Python includes all these features natively. Install only if you are maintaining a legacy codebase stuck on Python 2.6 or earlier that cannot be upgraded; otherwise, use the standard unittest module."},"id":"unittest2","links":{"html":"https://skillfed.io/packages/unittest2","md":"https://skillfed.io/packages/unittest2.md","pypi":"https://pypi.org/project/unittest2/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2015-06-30","license_spdx":null,"license_treatment":"permissive","name":"unittest2","python_support":"unspecified","summary":"The new features in unittest backported to Python 2.4+."},"popularity":{"monthly_downloads":1292386,"position":4101,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
