Skip to content

Commit 7a0e298

Browse files
committed
DOCTEST: FutureWarning repr changed in 3.7
1 parent 0813c00 commit 7a0e298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/deprecated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class FutureWarningMixin(object):
5252
5353
>>> with warnings.catch_warnings(record=True) as warns:
5454
... d = D()
55-
... warns[0].message
56-
FutureWarning("Please, don't use this class",)
55+
... warns[0].message.args[0]
56+
"Please, don't use this class"
5757
"""
5858
warn_message = 'This class will be removed in future versions'
5959

0 commit comments

Comments
 (0)