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 — fix(core): make sure context manager exits by alexanderankin · Pull Request #876 · testcontainers/testcontainers-python

Conversation

@alexanderankin

@alexanderankin alexanderankin commented Sep 22, 2025

Copy link
Copy Markdown
Member

maybe don't write your software in python

Sorry, something went wrong.

Uh oh!

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

All reactions
@alexanderankin
fix(core): make sure context manager exits
06fd2aa
@alexanderankin alexanderankin mentioned this pull request Sep 22, 2025
Bug: Resource is not cleaned up when timeout occurs using "with" keyword #875
Closed
alexanderankin added 2 commits September 22, 2025 08:41
@alexanderankin
pyproject schema changed
944b338
@alexanderankin
running into all python changes today
8653d2f
@santi

santi commented Sep 22, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Looked through it, and my initial thought was that this is somewhat similar to the problem that ExitStack tries to solve, but at the same time ExitStack is very niche, so that is it much more maintainable to do it your way

All reactions

Sorry, something went wrong.

Uh oh!

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

@alexanderankin

alexanderankin commented Sep 22, 2025

Copy link
Copy Markdown
Member Author

exit stack takes so much more code. its kind of horrific either way. im open to improvements now or later.

All reactions

Sorry, something went wrong.

Uh oh!

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

@santi
santi self-requested a review September 22, 2025 14:17
santi
santi approved these changes Sep 22, 2025
View reviewed changes
@alexanderankin
alexanderankin merged commit 10089f6 into main Sep 22, 2025
@alexanderankin
alexanderankin deleted the fix/python branch September 22, 2025 14:18
@github-actions github-actions Bot mentioned this pull request Sep 22, 2025
chore(main): release testcontainers 4.13.1 #877
Merged
alexanderankin pushed a commit that referenced this pull request Sep 24, 2025
@github-actions
chore(main): release testcontainers 4.13.1 (#877)
ce12f22
🤖 I have created a release *beep* *boop*
---


##
[4.13.1](testcontainers-v4.13.0...testcontainers-v4.13.1)
(2025-09-24)


### Bug Fixes

* **core:** Added 'compose' in compose_command_property
([#879](#879))
([769b7b6](769b7b6))
* **core:** make sure context manager exits
([#876](#876))
([10089f6](10089f6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@santi santi santi approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@alexanderankin @santi
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 01402775 — 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.