Mercurial > hg > tvii
changeset 68:5916b04d0582
update uniqueness test
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 17 Dec 2017 13:14:31 -0800 |
parents | 4bf2145c16f8 |
children | 0bb36ae047c3 |
files | tests/test_unique.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
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()