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 iowrapper warning #654

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Fix iowrapper warning #654

merged 1 commit into from
Jan 18, 2024

Conversation

jorgensd
Copy link
Member

Avoid getting:

  /root/shared/ffcx/ffcx/codegeneration/jit.py:69: ResourceWarning: unclosed file <_io.TextIOWrapper name='/root/.cache/fenics/libffcx_elements_3c34d6e913e7ee82cb1562136383f18dd61b39f3.c' mode='x' encoding='UTF-8'>
    open(c_filename, "x")
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

when creating new files.
Ref: FEniCS/dolfinx#2773 (comment)

@jorgensd jorgensd added the bug Something isn't working label Jan 17, 2024
@coveralls
Copy link

Coverage Status

coverage: 80.657% (+0.004%) from 80.653%
when pulling 4d72522 on dokken/remove-io-wrapper-warning
into 7c7530c on main.

Copy link
Contributor

@chrisrichardson chrisrichardson left a comment

Choose a reason for hiding this comment

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

It should be fine.

@jorgensd jorgensd added this pull request to the merge queue Jan 18, 2024
Merged via the queue into main with commit eb6ad3e Jan 18, 2024
11 checks passed
@jorgensd jorgensd deleted the dokken/remove-io-wrapper-warning branch January 18, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants