[Backport #14756] 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: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=i386&ver=0.19.1-1&stamp=1479504883
(cherry picked from commit 2f43ac4c4c)
This commit is contained in:
Yaroslav Halchenko 2016-11-28 12:30:16 -05:00 committed by Joris Van den Bossche
parent 59f633f330
commit 5c72726458
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)