Skip to content

Commit 4cccd86

Browse files
effigiesyarikoptic
andauthored
Apply suggestions from code review
Co-Authored-By: Yaroslav Halchenko <[email protected]>
1 parent 4d7dd36 commit 4cccd86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def teardown_package():
5555
""" Reset print options when tests finish """
5656
import numpy as np
5757
if _test_states.get('legacy_printopt') is not None:
58-
np.set_printoptions(legacy=_test_states['legacy_printopt'])
59-
_test_states['legacy_printopt'] = None
58+
np.set_printoptions(legacy=_test_states.pop('legacy_printopt'))
6059

6160

6261
# module imports

0 commit comments

Comments
 (0)