diff options
| author | Antony Lee <anntzer.lee@gmail.com> | 2021-08-21 19:12:26 +0200 |
|---|---|---|
| committer | Antony Lee <anntzer.lee@gmail.com> | 2021-08-22 22:19:24 +0200 |
| commit | 14dc7d84adbfafd994d87da47170796f527af09d (patch) | |
| tree | 2c252871d2f2e89f68dfd57645443cc572c3d003 /numpy/array_api/tests | |
| parent | 1fdfdfa97b0528f67f8fcf826f1e33f45569340a (diff) | |
| download | numpy-14dc7d84adbfafd994d87da47170796f527af09d.tar.gz | |
MAINT: Use a contextmanager to ensure loadtxt closes the input file.
This seems easier to track that a giant try... finally.
Also move the `fencoding` initialization to within the contextmanager,
in the rather unlikely case an exception occurs during the call to
`getpreferredencoding`.
Diffstat (limited to 'numpy/array_api/tests')
0 files changed, 0 insertions, 0 deletions
