Skip to main content

pypi_vers pypi_stat pypi_pyvr

A backport of Python 3.14.x unittest and unittest.mock to older versions of Python, under the backports namespace.

Usage

from backports import unittest

def hello(greetee='world'):
    return 'Hello {greetee}!'.format(greetee=greetee)


class HelloTest(unittest.TestCase)
    def test_greeting(self):
        # assertStartsWith() added in Python 3.14
        self.assertStartsWith(hello(), 'Hello')

Installation

Use

pip install backports.unittest

or

uv pip install backports.unittest

Compatibility

Python 3.10 - 3.14 are tested, using backports of the CPython’s own test suite.

Metadata

Release files for backports.unittest 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backports.unittest 0.0.1
File Size Uploaded
backports_unittest-0.0.1.tar.gz 271.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backports.unittest 0.0.1
File Interpreter ABI Platform
backports_unittest-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 442.4 kB

Release files / backports_unittest-0.0.1.tar.gz

Download URL backports_unittest-0.0.1.tar.gz
Size 271.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c29115983cb889cce4d5f823529865a634081c3e59f85181e1d60c12c47c570
BLAKE2b-256 checksum
How to use checksums
22e80187129ae5cf5e4b6466fd2fcabbda7b5b327a5ddd31f21b11b37e2af8f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / backports_unittest-0.0.1-py3-none-any.whl

Download URL backports_unittest-0.0.1-py3-none-any.whl
Size 170.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29529a60dd6a61467a17a4db2a964928abd35df0f98337312a64b15b2835087c
BLAKE2b-256 checksum
How to use checksums
369fb46ef892f507abebca8da6680ddf6e8d1a2b0db01a916e9419ddaac1e990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page