changeset 71:9d55e0299c3f

fix scoping for python 3.6
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Dec 2017 13:19:30 -0800
parents 351fc97bb996
children 479b7c598a0e
files tests/test_transpose.py tests/test_unique.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_transpose.py	Sun Dec 17 13:22:44 2017 -0800
+++ b/tests/test_transpose.py	Sun Dec 17 13:19:30 2017 -0800
@@ -29,8 +29,8 @@
         e = None
         try:
             transpose(not_a_matrix)
-        except NotAMatrix as e:
-            pass
+        except NotAMatrix as _e:
+            e = _e
         assert e is not None
         assert isinstance(e, NotAMatrix)
 
--- a/tests/test_unique.py	Sun Dec 17 13:22:44 2017 -0800
+++ b/tests/test_unique.py	Sun Dec 17 13:19:30 2017 -0800
@@ -25,8 +25,8 @@
         e = None
         try:
             unique(data)
-        except NotUnique as e:
-            pass
+        except NotUnique as _e:
+            e = _e
         assert e is not None
         assert isinstance(e, NotUnique)