We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d7dd36 commit 4cccd86Copy full SHA for 4cccd86
nibabel/__init__.py
@@ -55,8 +55,7 @@ def teardown_package():
55
""" Reset print options when tests finish """
56
import numpy as np
57
if _test_states.get('legacy_printopt') is not None:
58
- np.set_printoptions(legacy=_test_states['legacy_printopt'])
59
- _test_states['legacy_printopt'] = None
+ np.set_printoptions(legacy=_test_states.pop('legacy_printopt'))
60
61
62
# module imports
0 commit comments