You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pytest run __repr__ on an instance as part of its runtime - which typically IDE's also will do for you. __repr__ in EclFile uses getFilename which segfaults if the file path does not exist. This occurs even though an IOerror is raised as part of handling the initilization of EclFile.
Issue:
Pytest run
__repr__
on an instance as part of its runtime - which typically IDE's also will do for you.__repr__
inEclFile
usesgetFilename
which segfaults if the file path does not exist. This occurs even though anIOerror
is raised as part of handling the initilization ofEclFile
.https://github.com/equinor/ecl/blob/55625950b10f048e5e462bf4c7ab779d6b5b5c76/python/ecl/eclfile/ecl_file.py#L183
How to recreate:
Create a
test_ecl.py
with the following contentand run:
pytest test_ecl.py
This issue is closely related to #758, where the bug was discovered when
__repr__
was called on aEclSum
instance.The text was updated successfully, but these errors were encountered: