GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.11] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) by dpr-0 · Pull Request #112141 · python/cpython

Conversation

@dpr-0

@dpr-0 dpr-0 commented Nov 16, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue a ResourceWarning instead.

(cherry picked from commit e0f5127) gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (#111983)

Issue a ResourceWarning instead.

Co-authored-by: Hugo van Kemenade [email protected]
(cherry picked from commit e0f5127)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dpr-0 @hugovk
pythongh-109538: Avoid RuntimeError when StreamWriter is deleted with…
a4e7ceb
… closed loop (python#111983)

Issue a ResourceWarning instead.

Co-authored-by: Hugo van Kemenade <[email protected]>
(cherry picked from commit e0f5127)
@dpr-0
dpr-0 requested review from 1st1 and asvetlov as code owners November 16, 2023 07:11
@bedevere-app bedevere-app Bot added the awaiting review label Nov 16, 2023
This was referenced Nov 16, 2023
3.11.5 regression: StreamWriter.__del__ fails if event loop is already closed #109538
Closed
gh-109538: Catch closed loop runtime error and issue warning #111983
Merged
@bedevere-app bedevere-app Bot added the type-bug An unexpected behavior, bug, or error label Nov 16, 2023
@dpr-0 dpr-0 changed the title [3.11] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) [3.12] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) Nov 16, 2023
@dpr-0 dpr-0 changed the title [3.12] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) [3.11] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) Nov 16, 2023
@AlexWaygood
AlexWaygood requested a review from gvanrossum November 16, 2023 20:35
gvanrossum
gvanrossum approved these changes Nov 16, 2023
View reviewed changes

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks good. I guess this backported a test for this code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dpr-0 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Nov 16, 2023
@dpr-0 dpr-0 mentioned this pull request Nov 20, 2023
[3.11] gh-112186: Improve test case test_loop_is_closed_resource_warnings (GH-112187) #112261
Closed
@dpr-0
improve test case
c323eb5
gvanrossum
gvanrossum approved these changes Nov 20, 2023
View reviewed changes

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay let’s merge this!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dpr-0 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@gvanrossum
gvanrossum merged commit 1397505 into python:3.11 Nov 20, 2023
@bedevere-app bedevere-app Bot removed the awaiting merge label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gvanrossum gvanrossum gvanrossum approved these changes
@1st1 1st1 Awaiting requested review from 1st1 1st1 is a code owner
@asvetlov asvetlov Awaiting requested review from asvetlov asvetlov is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dpr-0 @gvanrossum
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.