summaryrefslogtreecommitdiff
path: root/numpy/doc/misc.py
diff options
context:
space:
mode:
authorBoxiang Sun <daetalusun@gmail.com>2015-12-10 18:48:48 +0800
committerBoxiang Sun <daetalusun@gmail.com>2015-12-12 13:26:50 +0800
commit7747c3a88cb0cad5687093d1345efcb2743fc1d5 (patch)
tree283153c923bcb2c9db3da8037ff623cba535cfd9 /numpy/doc/misc.py
parent6d323aea603c9c077d9c84db91bf7fb6fd1a34e9 (diff)
downloadnumpy-7747c3a88cb0cad5687093d1345efcb2743fc1d5.tar.gz
BUG: Fix thinko in assert_deprecated()
assert_deprecated() was recently reworked for stylistic changes (in 0aa32608 "STY: Minor style cleanups in tests and C code.") but made a thinko - `lst` is already a list of warnings, so we don't need to put that into [] braces when preparing assertion text. If we do the reporting breaks: In [1]: msg = "4 warnings found but 3 expected." In [2]: lst = ['CategoryA', 'CategoryB', 'CategoryC'] In [3]: n.join([msg] + [lst]) TypeError Traceback (most recent call last) ----> 1 n.join([msg] + [lst]) TypeError: sequence item 1: expected string, list found Fix it. Cc: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/doc/misc.py')
0 files changed, 0 insertions, 0 deletions