In Python 3.12 and above, you can try an experimental core based on the new
:mod:sys.monitoring <python:sys.monitoring> module by defining a
COVERAGE_CORE=sysmon environment variable. This should be faster for
line coverage, but not for branch coverage, and plugins and dynamic contexts
are not yet supported with it. I am very interested to hear how it works (or
doesn't!) for you.
.. _changes_7-3-4:
Version 7.3.4 — 2023-12-20
Fix: the change for multi-line signature exclusions in 7.3.3 broke other
forms of nested clauses being excluded properly. This is now fixed, closing
issue 1713_.
Fix: in the HTML report, selecting code for copying won't select the line
numbers also. Thanks, Robert Harris <pull 1717_>_.
Fix: function definitions with multi-line signatures can now be excluded by
matching any of the lines, closing issue 684. Thanks, Jan Rusak, Maciej Kowalczyk and Joanna Ejzel <pull 1705_>.
Fix: XML reports could fail with a TypeError if files had numeric components
[#463](https://github.com/pytest-dev/pluggy/issues/463) <https://github.com/pytest-dev/pluggy/issues/463>_: A warning :class:~pluggy.PluggyTeardownRaisedWarning is now issued when an old-style hookwrapper raises an exception during teardown.
See the warning documentation for more details.
[#471](https://github.com/pytest-dev/pluggy/issues/471) <https://github.com/pytest-dev/pluggy/issues/471>_: Add :func:PluginManager.unblock <pluggy.PluginManager.unblock> method to unblock a plugin by plugin name.
Bug Fixes
[#441](https://github.com/pytest-dev/pluggy/issues/441) <https://github.com/pytest-dev/pluggy/issues/441>_: Fix :func:~pluggy.HookCaller.call_extra() extra methods getting ordered before everything else in some circumstances. Regressed in pluggy 1.1.0.
[#438](https://github.com/pytest-dev/pluggy/issues/438) <https://github.com/pytest-dev/pluggy/issues/438>_: Fix plugins registering other plugins in a hook when the other plugins implement the same hook itself. Regressed in pluggy 1.1.0.
See 8.0.0rc1 and 8.0.0rc2 for the full changes since pytest 7.4!
Bug Fixes
#11842: Properly escape the reason of a skip <pytest.mark.skip ref>{.interpreted-text role="ref"} mark when writing JUnit XML files.
#11861: Avoid microsecond exceeds 1_000_000 when using log-date-format with %f specifier, which might cause the test suite to crash.
8.0.0rc2
pytest 8.0.0rc2 (2024-01-17)
Improvements
#11233: Improvements to -r for xfailures and xpasses:
Report tracebacks for xfailures when -rx is set.
Report captured output for xpasses when -rX is set.
For xpasses, add - in summary between test name and reason, to match how xfail is displayed.
#11825: The pytest_plugin_registered{.interpreted-text role="hook"} hook has a new plugin_name parameter containing the name by which plugin is registered.
Bug Fixes
#11706: Fix reporting of teardown errors in higher-scoped fixtures when using [--maxfail]{.title-ref} or [--stepwise]{.title-ref}.
#11758: Fixed IndexError: string index out of range crash in if highlighted[-1] == "\n" and source[-1] != "\n".
This bug was introduced in pytest 8.0.0rc1.
#9765, #11816: Fixed a frustrating bug that afflicted some users with the only error being assert mod not in mods. The issue was caused by the fact that str(Path(mod)) and mod.__file__ don't necessarily produce the same string, and was being erroneously used interchangably in some places in the code.
This fix also broke the internal API of PytestPluginManager.consider_conftest by introducing a new parameter -- we mention this in case it is being used by external code, even if marked as private.
#7363: PytestRemovedIn8Warning deprecation warnings are now errors by default.
Following our plan to remove deprecated features with as little disruption as possible, all warnings of type PytestRemovedIn8Warning now generate errors instead of warning messages by default.
The affected features will be effectively removed in pytest 8.1, so please consult the deprecations{.interpreted-text role="ref"} section in the docs for directions on how to update existing code.
In the pytest 8.0.X series, it is possible to change the errors back into warnings as a stopgap measure by adding this to your pytest.ini file:
Read the v2 migration guide <https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html>__ for help upgrading to the latest version of urllib3.
Removals
Removed support for the deprecated urllib3[secure] extra. ([#2680](https://github.com/urllib3/urllib3/issues/2680) <https://github.com/urllib3/urllib3/issues/2680>__)
Removed support for the deprecated SecureTransport TLS implementation. ([#2681](https://github.com/urllib3/urllib3/issues/2681) <https://github.com/urllib3/urllib3/issues/2681>__)
Removed support for the end-of-life Python 3.7. ([#3143](https://github.com/urllib3/urllib3/issues/3143) <https://github.com/urllib3/urllib3/issues/3143>__)
Bugfixes
Allowed loading CA certificates from memory for proxies. ([#3065](https://github.com/urllib3/urllib3/issues/3065) <https://github.com/urllib3/urllib3/issues/3065>__)
Fixed decoding Gzip-encoded responses which specified x-gzip content-encoding. ([#3174](https://github.com/urllib3/urllib3/issues/3174) <https://github.com/urllib3/urllib3/issues/3174>__)
api-change:connect: [botocore] Update list and string length limits for predefined attributes.
api-change:inspector2: [botocore] This release adds ECR container image scanning based on their lastRecordedPullTime.
api-change:sagemaker: [botocore] Amazon SageMaker Automatic Model Tuning now provides an API to programmatically delete tuning jobs.
1.34.28
api-change:acm-pca: [botocore] AWS Private CA now supports an option to omit the CDP extension from issued certificates, when CRL revocation is enabled.
api-change:lightsail: [botocore] This release adds support for IPv6-only instance plans.
1.34.27
api-change:ec2: [botocore] Introduced a new clientToken request parameter on CreateNetworkAcl and CreateRouteTable APIs. The clientToken parameter allows idempotent operations on the APIs.
api-change:ecs: [botocore] Documentation updates for Amazon ECS.
api-change:outposts: [botocore] DeviceSerialNumber parameter is now optional in StartConnection API
api-change:rds: [botocore] This release adds support for Aurora Limitless Database.
api-change:storagegateway: [botocore] Add DeprecationDate and SoftwareVersion to response of ListGateways.
1.34.26
api-change:inspector2: [botocore] This release adds support for CIS scans on EC2 instances.
1.34.25
enhancement:documentation: [botocore] Updates the GitHub issue creation link in our README
1.34.24
api-change:appconfigdata: [botocore] Fix FIPS Endpoints in aws-us-gov.
api-change:cloud9: [botocore] Doc-only update around removing AL1 from list of available AMIs for Cloud9
api-change:cloudfront-keyvaluestore: [botocore] This release improves upon the DescribeKeyValueStore API by returning two additional fields, Status of the KeyValueStore and the FailureReason in case of failures during creation of KeyValueStore.
api-change:connectcases: [botocore] This release adds the ability to view audit history on a case and introduces a new parameter, performedBy, for CreateCase and UpdateCase API's.
api-change:ec2: [botocore] Documentation updates for Amazon EC2.
api-change:ecs: [botocore] This release adds support for Transport Layer Security (TLS) and Configurable Timeout to ECS Service Connect. TLS facilitates privacy and data security for inter-service communications, while Configurable Timeout allows customized per-request timeout and idle timeout for Service Connect services.
api-change:finspace: [botocore] Allow customer to set zip default through command line arguments.
api-change:organizations: [botocore] Doc only update for quota increase change
api-change:rds: [botocore] Introduced support for the InsufficientDBInstanceCapacityFault error in the RDS CreateDBCluster API method. This provides enhanced error handling, ensuring a more robust experience when creating database clusters with insufficient instance capacity.
api-change:endpoint-rules: [botocore] Update endpoint-rules client to latest version
api-change:connect: Update list and string length limits for predefined attributes.
api-change:inspector2: This release adds ECR container image scanning based on their lastRecordedPullTime.
api-change:sagemaker: Amazon SageMaker Automatic Model Tuning now provides an API to programmatically delete tuning jobs.
1.34.28
api-change:acm-pca: AWS Private CA now supports an option to omit the CDP extension from issued certificates, when CRL revocation is enabled.
api-change:lightsail: This release adds support for IPv6-only instance plans.
1.34.27
api-change:ec2: Introduced a new clientToken request parameter on CreateNetworkAcl and CreateRouteTable APIs. The clientToken parameter allows idempotent operations on the APIs.
api-change:ecs: Documentation updates for Amazon ECS.
api-change:outposts: DeviceSerialNumber parameter is now optional in StartConnection API
api-change:rds: This release adds support for Aurora Limitless Database.
api-change:storagegateway: Add DeprecationDate and SoftwareVersion to response of ListGateways.
1.34.26
api-change:inspector2: This release adds support for CIS scans on EC2 instances.
1.34.25
enhancement:documentation: Updates the GitHub issue creation link in our README
1.34.24
api-change:appconfigdata: Fix FIPS Endpoints in aws-us-gov.
api-change:cloud9: Doc-only update around removing AL1 from list of available AMIs for Cloud9
api-change:cloudfront-keyvaluestore: This release improves upon the DescribeKeyValueStore API by returning two additional fields, Status of the KeyValueStore and the FailureReason in case of failures during creation of KeyValueStore.
api-change:connectcases: This release adds the ability to view audit history on a case and introduces a new parameter, performedBy, for CreateCase and UpdateCase API's.
api-change:ec2: Documentation updates for Amazon EC2.
api-change:ecs: This release adds support for Transport Layer Security (TLS) and Configurable Timeout to ECS Service Connect. TLS facilitates privacy and data security for inter-service communications, while Configurable Timeout allows customized per-request timeout and idle timeout for Service Connect services.
api-change:finspace: Allow customer to set zip default through command line arguments.
api-change:organizations: Doc only update for quota increase change
api-change:rds: Introduced support for the InsufficientDBInstanceCapacityFault error in the RDS CreateDBCluster API method. This provides enhanced error handling, ensuring a more robust experience when creating database clusters with insufficient instance capacity.
api-change:endpoint-rules: Update endpoint-rules client to latest version
This is a fix release for the 3.0.x feature release branch.
Fixes an issue where using other JSON providers, such as flask-orjson, previously caused loaded session data to have an incorrect format in some cases.
Correct type for path argument to send_file. :issue:5230
Fix a typo in an error message for the flask run --key option. :pr:5344
Session data is untagged without relying on the built-in json.loadsobject_hook. This allows other JSON providers that don't implement that.
:issue:5381
Address more type findings when using mypy strict mode. :pr:5383
Python 3.12: Restore the full ability to walk the stack of a suspended
greenlet; previously only the innermost frame was exposed. See issue 388 <https://github.com/python-greenlet/greenlet/issues/388>. Fix by
Joshua Oreman in PR 393 <https://github.com/python-greenlet/greenlet/pull/393/>.
3.0.2 (2023-12-08)
Packaging: Add a minimal pyproject.toml to sdists.
Packaging: Various updates to macOS wheels.
Fix a test case on Arm32. Note that this is not a supported platform
(there is no CI for it) and support is best effort; there may be
other issues lurking. See issue 385 <https://github.com/python-greenlet/greenlet/issues/385>_
This is a fix release for the 2.1.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.
Improves performance of the Markup.striptags method for large input.
Bumps the all-dependencies group in /api with 22 updates:
7.3.2
7.4.1
0.3.7
0.3.8
2.5.32
2.5.33
1.3.0
1.4.0
3.5.0
3.6.0
7.4.3
8.0.0
4.11.4
4.12.1
2.0.7
2.1.0
1.33.6
1.34.29
1.33.6
1.34.29
3.0.0
3.0.1
3.0.1
3.0.3
7.0.0
7.0.1
3.1.2
3.1.3
2.1.3
2.1.4
2.5.2
2.6.0
2.14.5
2.16.1
2023.3.post1
2023.4
0.8.2
0.10.0
2.0.23
2.0.25
4.8.0
4.9.0
23.3.1
23.3.2
Updates
coverage
from 7.3.2 to 7.4.1Changelog
Sourced from coverage's changelog.
... (truncated)
Commits
07588ea
test: give hypothesis a little more time2c96518
build: tags should be signed8d1857f
docs: sample HTML for 7.4.1ddc88f7
docs: prep for 7.4.198cd671
docs: correct two library urls498b8c9
build: coverage runs have to skip windows pypy too75b22f0
test: ignore color in tracebacksb7c41a2
build: show action environment variables for debuggingf8be865
build: run actions on 3.13 since a3 came out.de60a6d
build(deps): bump actions/dependency-review-action from 3 to 4Updates
distlib
from 0.3.7 to 0.3.8Changelog
Sourced from distlib's changelog.
Commits
ab5f8e7
Changes for 0.3.8.86bb212
Update change log.488599f
Updates based on flake8 checks.0e261af
Use legacy version implementation for Python itself.8242f39
Update copyright years.e27569b
Fix #208: Handle deprecation removals in Python 3.13.65a014b
Update requirements and CI matrix.124108a
Skip test for non-final Python versions.ff48e09
Fix #206: include tox.ini in sdist.eeaa18d
Fix #204: Use symlinks in venv creation during test.Updates
identify
from 2.5.32 to 2.5.33Commits
3d4672c
v2.5.3369fcae7
Merge pull request #433 from om-henners/patch-18dfb002
Addpyt
extensionbce1aad
Merge pull request #430 from pre-commit/pre-commit-ci-update-config5bf8237
[pre-commit.ci] pre-commit autoupdateUpdates
pluggy
from 1.3.0 to 1.4.0Changelog
Sourced from pluggy's changelog.
Commits
2efd28e
Preparing release 1.4.0ebeb2f2
Merge pull request #471 from bluetech/unblock3a28b4d
Merge pull request #464 from bluetech/hookwrapper-teardown-warning4331b7a
Merge pull request #473 from bluetech/iterator-invalidation7aef3e6
hooks: fix plugins registering other plugins in a hookcc36605
Merge pull request #472 from bluetech/call-extra-ordering-fix443fee6
hooks: fixcall_extra
extra methods getting ordered before everything else4577b45
hooks: add comment describing_hookimpls
's format/invariants.13b3661
AddPluginManager.unblock
method to unblock a name4b5b2d4
CHANGELOG: fix errors in 1.0.0 entryUpdates
pre-commit
from 3.5.0 to 3.6.0Release notes
Sourced from pre-commit's releases.
Changelog
Sourced from pre-commit's changelog.
Commits
9c9983d
v3.6.07dc0a59
Merge pull request #3093 from pre-commit/removeprefixd3fa7f4
Merge pull request #3092 from pre-commit/minimum-version-first08478ec
python 3.9+: use removeprefix047439a
attempt minimum_pre_commit_version first when parsing configs23a2b73
Merge pull request #3079 from edgarrmondragon/deprecation-rmtree-onerrorcffabe5
Address deprecation warning inshutil.rmtree(onerror=...)
51df34e
Merge pull request #3078 from pre-commit/pre-commit-ci-update-confige36cefc
[pre-commit.ci] pre-commit autoupdate2280645
Merge pull request #3064 from pre-commit/pre-commit-ci-update-configUpdates
pytest
from 7.4.3 to 8.0.0Release notes
Sourced from pytest's releases.
... (truncated)
Commits
478f823
Prepare release version 8.0.06085900
[8.0.x] fix: avoid rounding microsecond to1_000_000
(#11863)3b41c65
[8.0.x] Escape skip reason in junitxml (#11845)747072a
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (#11768)011a475
Properly attach packages to the GH release notes (#11839) (#11840)97960bd
Merge pull request #11835 from pytest-dev/release-8.0.0rc26be0a3c
Prepare release version 8.0.0rc244ffe07
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x14ecb04
[8.0.x] testing: temporarily disable test due to hypothesis issue41c8dab
Merge pull request #11831 from bluetech/backport-11825-to-8.0.xUpdates
tox
from 4.11.4 to 4.12.1Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.
Commits
8eaf09f
release 4.12.137b11d4
#3165 fixed Tox failing with --installpkg and multi testenvs (#3186)fa390ce
[pre-commit.ci] pre-commit autoupdate (#3185)3b403bc
Fix tox version requirement in docs (#3184)776718c
release 4.12.0fc80080
Always pass FORCE_COLOR & NO_COLOR to the environment (#3172)659f714
Fix the CI (#3183)8406971
[pre-commit.ci] pre-commit autoupdate (#3182)3f8f53d
[pre-commit.ci] pre-commit autoupdate (#3177)61547b0
Fix 'open an issue' link in development.rst (#3179)Updates
urllib3
from 2.0.7 to 2.1.0Release notes
Sourced from urllib3's releases.
Changelog
Sourced from urllib3's changelog.
Commits
69be299
Release 2.1.077f71d3
Mention myself in READMEe601a0e
Check _has_route within the test function (#3187)f7cd7f3
Stop naming urllib3/requests tests "integration" (#3182)6fc4260
Use more precise type checks5fa8ea6
Fix lint on Python 3.128727683
Remove Sphinx version pin5fc48e7
Treat x-gzip content encoding as gzipff764a0
Allow loading CA certificates from memory for proxies (#3150)b99cc39
Replace deprecated set-output in GitHub ActionsUpdates
boto3
from 1.33.6 to 1.34.29Changelog
Sourced from boto3's changelog.
... (truncated)
Commits
45be5e9
Merge branch 'release-1.34.29'40e58d4
Bumping version to 1.34.29c0f6375
Add changelog entries from botocore8ef5c71
Minor GitHub workflow changes (#3998)4ab369a
Merge branch 'release-1.34.28'038a03f
Merge branch 'release-1.34.28' into develop0053833
Bumping version to 1.34.288177fb0
Add changelog entries from botocoref869e7a
Merge branch 'release-1.34.27'819c0c8
Merge branch 'release-1.34.27' into developUpdates
botocore
from 1.33.6 to 1.34.29Changelog
Sourced from botocore's changelog.
... (truncated)
Commits
535ecc3
Merge branch 'release-1.34.29'56fd757
Bumping version to 1.34.29cd526a7
Update to latest modelsbd1d85b
Minor GitHub workflow changes (#3104)27b2aaa
Merge branch 'release-1.34.28'573510f
Merge branch 'release-1.34.28' into developd24a5cc
Bumping version to 1.34.280d0f0e0
Update to latest modelscadb988
Merge branch 'release-1.34.27'e7c5b6a
Merge branch 'release-1.34.27' into developUpdates
flask
from 3.0.0 to 3.0.1Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
Commits
f622b1c
release version 3.0.15fcc999
fix create release actionda3a0dd
fix slsa generator version5e059be
update actions versionsbae6ee8
address mypy strict findings (#5383)81b3c85
update requirements08d3185
update pre-commit hooks6000e80
address mypy strict findings5a48a0f
untag withoutobject_hook
(#5382)700fc7d
untag without object_hookUpdates
greenlet
from 3.0.1 to 3.0.3Changelog
Sourced from greenlet's changelog.
Commits
ea4bc27
Preparing release 3.0.37694880
Make doctests work on 3.7 again, which doesn't have importlib.073b1e1
Linting. Add linting to CI.9e73b59
Docs: Update from the old default theme to furo.5f4b4bb
Py3.12: Always expose greenlet frames on a switch.13148f9
Update comment that was still referring to a different, less-robust approach ...b5f9d23
Restore stack introspection ability on 3.12edbdda2
Back to development: 3.0.3719ea47
Preparing release 3.0.22c0793c
Add change note about macOS wheels.Updates
importlib-metadata
from 7.0.0 to 7.0.1Changelog
Sourced from importlib-metadata's changelog.
Commits
f2e84e3
Finalizee9e9f77
Merge commit '98196a'98196a7
Fixed type annotations to allow strings.f38e051
Add Python 3.13 to compatibility matrix. Ref python/cpython#113174.0c1d32e
Inline os.PathLike using future annotations.b99c9d6
Refine SimplePath to allow for os.PathLike on input and SimplePath on output.200cf45
Merge pull request #480 from python/bugfix/distribution-simplepathac243d3
Include _meta in docs to fix doc build failures.1b3f272
Corrected the interface for SimplePath to encompass the expectations of locat...fc4df51
Rely on read_text and read_bytes from located paths.Updates
jinja2
from 3.1.2 to 3.1.3Release notes
Sourced from jinja2's releases.
Changelog
Sourced from jinja2's changelog.
Commits
d9de4bb
release version 3.1.350124e1
skip test pypi9ea7222
use trusted publishingda703f7
use trusted publishingbce1746
use trusted publishing7277d80
update pre-commit hooks5c8a105
Make nested-trans-block exceptions nicer (#1918)19a55db
Make nested-trans-block exceptions nicer7167953
Merge pull request from GHSA-h5c8-rqwp-cp957dd3680
xmlattr filter disallows keys with spacesUpdates
markupsafe
from 2.1.3 to 2.1.4Release notes
Sourced from markupsafe's releases.
Changelog
Sourced from markupsafe's changelog.
Commits
b7cd652
release version 2.1.43bead8e
update cibuildwheel for 3.12 wheelsa24df39
improve striptags performance (#413)750e22b
improve striptags performance4c397ef
start version 2.1.4bc0cb5c
[pre-commit.ci] pre-commit autoupdate (#387)35ab8a0
[pre-commit.ci] pre-commit autoupdatef5a40c7
[pre-commit.ci] pre-commit autoupdate (#386)8dd8dac
[pre-commit.ci] pre-commit autoupdatee2fd390
update dependenciesUpdates
pydantic
from 2.5.2 to 2.6.0Release notes
Sourced from pydantic's releases.