Skip to content

Commit

Permalink
Python: use the with statement in manually written specs too
Browse files Browse the repository at this point in the history
This should fix the warnings about unclosed files printed in the
console:

```console
$ ./ci-python
...
ResourceWarning: unclosed file <_io.FileIO name='src/fixed_struct.bin' mode='rb' closefd=True>
...
ResourceWarning: unclosed file <_io.FileIO name='src/term_strz.bin' mode='rb' closefd=True>
```
  • Loading branch information
generalmimon committed Sep 29, 2024
1 parent f00dbd9 commit 7e77f5f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 29 deletions.
8 changes: 5 additions & 3 deletions spec/python/test_debug_enum_name.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions spec/python/test_opaque_external_type.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions spec/python/test_opaque_with_param.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions spec/python/test_params_def.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions spec/python/test_switch_cast.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions spec/python/test_type_ternary_opaque.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e77f5f

Please sign in to comment.