BF: (re)raise the exception always unless returning (#14756)

otherwise leads atm to masking of this error while testing on i386
and then failling since

UnboundLocalError: local variable unser referenced before assignment

More detail:
This commit is contained in:
Yaroslav Halchenko 2016-11-28 12:30:16 -05:00 committed by Jeff Reback
parent 06f26b51e9
commit 2f43ac4c4c
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class TestPandasContainer(tm.TestCase):
if raise_ok is not None:
if isinstance(detail, raise_ok):
if sort is not None and sort in unser.columns:
unser = unser.sort_values(sort)