diff tests/test_unique.py @ 68:5916b04d0582

update uniqueness test
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Dec 2017 13:14:31 -0800
parents e1eb45c4763e
children 9d55e0299c3f
line wrap: on
line diff
--- a/tests/test_unique.py	Sun Dec 17 12:53:47 2017 -0800
+++ b/tests/test_unique.py	Sun Dec 17 13:14:31 2017 -0800
@@ -22,12 +22,13 @@
         """what if a set is not unique?"""
 
         data = [1,2,3,4]
+        e = None
         try:
             unique(data)
-            assert 1 == 0
         except NotUnique as e:
-            assert (e is not None)
-            assert isinstance(e, NotUnique)
+            pass
+        assert e is not None
+        assert isinstance(e, NotUnique)
 
 if __name__ == '__main__':
     unittest.main()