Skip to content

Commit 3a13301

Browse files
committed
RF: remove redundant line
and rephrase fetch of a couple of library keys.
1 parent caa04e4 commit 3a13301

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nibabel/tests/test_floating.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def test_type_info():
6060
ld_dict = dtt2dict(np.longdouble)
6161
dbl_dict = dtt2dict(np.float64)
6262
infod = type_info(np.longdouble)
63-
ld_dict['width'] = np.dtype(np.longdouble).itemsize
6463
vals = tuple(ld_dict[k] for k in ('nmant', 'nexp', 'width'))
6564
# Information for PPC head / tail doubles from:
6665
# https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man3/float.3.html
@@ -70,9 +69,8 @@ def test_type_info():
7069
(106, 11, 16)): # PPC head, tail doubles, expected values
7170
pass
7271
elif vals == (105, 11, 16): # bust info for PPC head / tail longdoubles
73-
# min and max broken.
74-
ld_dict['min'] = infod['min']
75-
ld_dict['max'] = infod['max']
72+
# min and max broken, copy from infod
73+
ld_dict.update({k: infod[k] for k in ('min', 'max')})
7674
elif vals == (1, 1, 16): # another bust info for PPC head / tail longdoubles
7775
ld_dict = dbl_dict.copy()
7876
ld_dict.update(dict(nmant=106, width=16))

0 commit comments

Comments
 (0)