From 1309346c08945cd4764a549ec63cf51089634a45 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 28 Nov 2016 02:46:50 +0000 Subject: [PATCH] BF: (re)raise the exception always unless returning 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 --- pandas/io/tests/json/test_pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/tests/json/test_pandas.py b/pandas/io/tests/json/test_pandas.py index ba02e9186f1df..e6e6f33669e17 100644 --- a/pandas/io/tests/json/test_pandas.py +++ b/pandas/io/tests/json/test_pandas.py @@ -167,7 +167,7 @@ def _check_orient(df, orient, dtype=None, numpy=False, if raise_ok is not None: if isinstance(detail, raise_ok): return - raise + raise if sort is not None and sort in unser.columns: unser = unser.sort_values(sort)