Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EmPy interpreter shutdown on construction error #663

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Sep 6, 2024

If the interpreter fails to construct, we don't want to reference it later. Instead, create a separate try/finally block to deal with interpreter shutdown.

This bug is unrelated to the EmPy 4.x transition, but was identified as part of that effort.

If the interpreter fails to construct, we don't want to reference it
later. Instead, create a separate try/finally block to deal with
interpreter shutdown.
@cottsay cottsay added the bug Something isn't working label Sep 6, 2024
@cottsay cottsay self-assigned this Sep 6, 2024
@cottsay cottsay added this to the 0.17.2 milestone Sep 6, 2024
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.35%. Comparing base (4d7ab92) to head (dba58b2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #663   +/-   ##
=======================================
  Coverage   87.34%   87.35%           
=======================================
  Files          67       67           
  Lines        3913     3914    +1     
  Branches      776      776           
=======================================
+ Hits         3418     3419    +1     
  Misses        391      391           
  Partials      104      104           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cottsay cottsay merged commit 090e650 into master Sep 6, 2024
36 checks passed
@cottsay cottsay deleted the cottsay/empy-interpreter-shutdown branch September 6, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants