René's URL Explorer Experiment


Title: fix(pytest): ignore pytest internal fixture finalizers in teardown by nekdan · Pull Request #937 · allure-framework/allure-python · GitHub

Open Graph Title: fix(pytest): ignore pytest internal fixture finalizers in teardown by nekdan · Pull Request #937 · allure-framework/allure-python

X Title: fix(pytest): ignore pytest internal fixture finalizers in teardown by nekdan · Pull Request #937 · allure-framework/allure-python

Description: Fixes #918 Supersedes #921 Context Starting from pytest 9.1.0, FixtureDef.execute() registers an internal lambda finalizer (lambda: request.node.ihook.pytest_fixture_post_finalizer(...)) into fixturedef._finalizers at index 0 before invoking pytest_fixture_setup. Previously, AllureListener.pytest_fixture_setup wrapped all entries in fixturedef._finalizers with allure_commons.fixture. When pytest ran that internal finalizer at teardown, pytest_fixture_post_finalizer triggered allure_logger.stop_group() and flushed the TestResultContainer to disk before allure_commons.fixture reached stop_after_fixture(), leaving a phantom :: entry with unknown status in every fixture teardown. Changes Record the number of pre-existing internal finalizers on fixturedef._finalizers before yield in AllureListener.pytest_fixture_setup and wrap only user-registered finalizers added during fixture execution. Preserve user-defined request.addfinalizer(lambda: ...) reporting (unlike filtering by "" name). Add acceptance tests verifying both yield fixtures and explicit user lambda finalizers. Checklist Sign Allure CLA Provide unit tests

Open Graph Description: Fixes #918 Supersedes #921 Context Starting from pytest 9.1.0, FixtureDef.execute() registers an internal lambda finalizer (lambda: request.node.ihook.pytest_fixture_post_finalizer(...)) into fixtu...

X Description: Fixes #918 Supersedes #921 Context Starting from pytest 9.1.0, FixtureDef.execute() registers an internal lambda finalizer (lambda: request.node.ihook.pytest_fixture_post_finalizer(...)) into fixtu...

Opengraph URL: https://github.com/allure-framework/allure-python/pull/937

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1ad7c4e1-49c0-826f-3d1f-be78c9740f5a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC10:2ADC53:119B69:18D35C:6AFD4D40
html-safe-nonce5631d6ee70cb990bc9a3a7c6a1a446f43fa277d3bf5f03c6a0ef908346c94e1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzEwOjJBREM1MzoxMTlCNjk6MThEMzVDOjZBRkQ0RDQwIiwidmlzaXRvcl9pZCI6IjQ1NTQ4MjI5MjUyNjEwMzI3NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace385936117f1404a071546f2cab045d1a40a3048f2bda1cc9f9b4fb1c5c1f5cb
hovercard-subject-tagpull_request:5285201785
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/allure-framework/allure-python/pull/937/files
twitter:imagehttps://avatars.githubusercontent.com/u/7727797?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7727797?s=400&v=4
og:image:altFixes #918 Supersedes #921 Context Starting from pytest 9.1.0, FixtureDef.execute() registers an internal lambda finalizer (lambda: request.node.ihook.pytest_fixture_post_finalizer(...)) into fixtu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git
octolytics-dimension-user_id5879127
octolytics-dimension-user_loginallure-framework
octolytics-dimension-repository_id79346720
octolytics-dimension-repository_nwoallure-framework/allure-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id79346720
octolytics-dimension-repository_network_root_nwoallure-framework/allure-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/allure-framework/allure-python/pull/937/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fpull%2F937%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fpull%2F937%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=allure-framework%2Fallure-python
Reloadhttps://github.com/allure-framework/allure-python/pull/937/files
Reloadhttps://github.com/allure-framework/allure-python/pull/937/files
Reloadhttps://github.com/allure-framework/allure-python/pull/937/files
allure-frameworkhttps://github.com/allure-framework
allure-pythonhttps://github.com/allure-framework/allure-python
Codehttps://github.com/allure-framework/allure-python
Issues101 (101)https://github.com/allure-framework/allure-python/issues
Pull requests33 (33)https://github.com/allure-framework/allure-python/pulls
Actionshttps://github.com/allure-framework/allure-python/actions
Security and qualityhttps://github.com/allure-framework/allure-python/security
Insightshttps://github.com/allure-framework/allure-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fallure-framework%2Fallure-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fallure-framework%2Fallure-python%2Fissues%2Fnew%2Fchoose
nekdanhttps://github.com/nekdan
allure-framework:masterhttps://github.com/allure-framework/allure-python/tree/master
nekdan:fix/pytest-9.1-internal-finalizerhttps://github.com/nekdan/allure-python/tree/fix/pytest-9.1-internal-finalizer
Conversation 1 https://github.com/allure-framework/allure-python/pull/937
Commits 1 https://github.com/allure-framework/allure-python/pull/937/commits
Checks 19 https://github.com/allure-framework/allure-python/pull/937/checks
Files changed https://github.com/allure-framework/allure-python/pull/937/files
Please reload this pagehttps://github.com/allure-framework/allure-python/pull/937/files
fix(pytest): ignore pytest internal fixture finalizers in teardown https://github.com/allure-framework/allure-python/pull/937/files#top
Show all changes 1 commit https://github.com/allure-framework/allure-python/pull/937/files
af47a1f fix(pytest): ignore pytest internal fixture finalizers in teardown nekdan Nov 12, 2026 https://github.com/allure-framework/allure-python/pull/937/commits/af47a1f64aafe1e3822730bd2eaeff37ce916a12
Clear filters https://github.com/allure-framework/allure-python/pull/937/files
Please reload this pagehttps://github.com/allure-framework/allure-python/pull/937/files
Please reload this pagehttps://github.com/allure-framework/allure-python/pull/937/files
listener.py https://github.com/allure-framework/allure-python/pull/937/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
fixture_internal_finalizer_test.py https://github.com/allure-framework/allure-python/pull/937/files#diff-4b63fc505fc4b00dbfd4f545e8cf08d80c902b0b82e866fb1222010cf1d811ed
allure-pytest/src/listener.pyhttps://github.com/allure-framework/allure-python/pull/937/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
View file https://github.com/allure-framework/allure-python/blob/af47a1f64aafe1e3822730bd2eaeff37ce916a12/allure-pytest/src/listener.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/allure-framework/allure-python/pull/937/{{ revealButtonHref }}
https://github.com/allure-framework/allure-python/pull/937/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
https://github.com/allure-framework/allure-python/pull/937/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
https://github.com/allure-framework/allure-python/pull/937/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
tests/allure_pytest/acceptance/fixture/fixture_internal_finalizer_test.pyhttps://github.com/allure-framework/allure-python/pull/937/files#diff-4b63fc505fc4b00dbfd4f545e8cf08d80c902b0b82e866fb1222010cf1d811ed
View file https://github.com/allure-framework/allure-python/blob/af47a1f64aafe1e3822730bd2eaeff37ce916a12/tests/allure_pytest/acceptance/fixture/fixture_internal_finalizer_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/allure-framework/allure-python/pull/937/{{ revealButtonHref }}
Please reload this pagehttps://github.com/allure-framework/allure-python/pull/937/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.