diff tests/test_unique.py @ 71:9d55e0299c3f

fix scoping for python 3.6
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Dec 2017 13:19:30 -0800
parents 5916b04d0582
children
line wrap: on
line diff
--- 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)