Skip to main content

gz-mutation-witness

A mutation-sweep witness for unittest suites. It applies text mutations to one source file, runs a test command per mutant in an isolated subprocess with its own bytecode cache, and reports four outcomes, keeping claims about the guard apart from claims about the run:

  • killed: a nominated test failed on an assertion;
  • survived: the mutant activated and no test caught it;
  • invalid: the run graded nothing (absent target, no-op edit, mutant does not compile);
  • inconclusive: the failure cannot be attributed to the guard (errors, fixtures, unrelated tests, red baseline, hang).
from gz_mutation_witness import Mutation, run_mutation_sweep

Provenance

Extracted as-is from gzkit at commit a06a4f36a8e3fc538d8f20b61df91b9bf42d1ee7: src/gzkit/mutation_witness.py, src/gzkit/executables.py, classify_failure from src/gzkit/red_witness.py and read_test_observations from src/gzkit/unit_run_provenance.py, with their tests. Only import paths changed.

Development

uv sync --locked
uv run --locked python -m unittest discover -s tests -v

Metadata

Release files for gz-mutation-witness 0.1.0

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

Source distribution (sdist)

Source distribution for gz-mutation-witness 0.1.0
File Size Uploaded Provenance Actions
gz_mutation_witness-0.1.0.tar.gz 11.3 kB With provenance Details for gz_mutation_witness-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gz-mutation-witness 0.1.0
File Interpreter ABI Platform Actions
gz_mutation_witness-0.1.0-py3-none-any.whl Python 3 none any Details for gz_mutation_witness-0.1.0-py3-none-any.whl

Total release size: 24.4 kB

Release files / gz_mutation_witness-0.1.0.tar.gz

Download URL gz_mutation_witness-0.1.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e4ced1fedab71288a5c090caaee8b2d44feb0ef6c8157318db6409dfc68edaa6
BLAKE2b-256 checksum
How to use checksums
9baeeb7598c67f9a8857897a727872487455bb6e305950c7a54dce8dec9684d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / gz_mutation_witness-0.1.0-py3-none-any.whl

Download URL gz_mutation_witness-0.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e49a6e4679367787d64ec588c9eb45f76b81798505b58395b93682d7ad552230
BLAKE2b-256 checksum
How to use checksums
642d1a2c1ea655d43514c9b15c58ecb025df42df53dcc77914ff72c7e71eb355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for gz-mutation-witness 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gz_mutation_witness-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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