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

Expect RuntimeError or ValueError in ntequl test #472

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

mferrera
Copy link
Contributor

@mferrera mferrera commented Dec 4, 2023

Relates to Python 3.11+ support

Later versions of opm use a newer pybind11 version and potentially different exceptions for input errors in its C++ backend. This makes both RuntimeError and ValueError possible but tricky to pin down to a particular opm version. This takes the easy route and allows for both.

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bb7a6db) 95.18% compared to head (7a5772d) 95.18%.

❗ Current head 7a5772d differs from pull request most recent head 57e58b9. Consider uploading reports for the commit 57e58b9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #472   +/-   ##
=======================================
  Coverage   95.18%   95.18%           
=======================================
  Files          33       33           
  Lines        4461     4461           
=======================================
  Hits         4246     4246           
  Misses        215      215           

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

Copy link
Collaborator

@berland berland left a comment

Choose a reason for hiding this comment

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

👍

@mferrera
Copy link
Contributor Author

mferrera commented Dec 4, 2023

I can't merge this myself -- #471 is also for Python 3.11 😄

Later versions of opm use a newer pybind11 version and potentially
different exceptions for input errors in its C++ backend. This makes
both `RuntimeError` and `ValueError` possible but tricky to pin down to
a particular opm version. This takes the easy route and allows for both.
@mferrera mferrera mentioned this pull request Jan 9, 2024
@mferrera mferrera merged commit cc784de into equinor:master Jan 17, 2024
7 checks passed
@mferrera mferrera deleted the fix-ntequl-test branch January 17, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants