comparison 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
comparison
equal deleted inserted replaced
70:351fc97bb996 71:9d55e0299c3f
23 23
24 data = [1,2,3,4] 24 data = [1,2,3,4]
25 e = None 25 e = None
26 try: 26 try:
27 unique(data) 27 unique(data)
28 except NotUnique as e: 28 except NotUnique as _e:
29 pass 29 e = _e
30 assert e is not None 30 assert e is not None
31 assert isinstance(e, NotUnique) 31 assert isinstance(e, NotUnique)
32 32
33 if __name__ == '__main__': 33 if __name__ == '__main__':
34 unittest.main() 34 unittest.main()