Mercurial > hg > tvii
comparison tests/test_transpose.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 | 0bb36ae047c3 |
children |
comparison
equal
deleted
inserted
replaced
70:351fc97bb996 | 71:9d55e0299c3f |
---|---|
27 [7, 8, 9, 10] # oops | 27 [7, 8, 9, 10] # oops |
28 ] | 28 ] |
29 e = None | 29 e = None |
30 try: | 30 try: |
31 transpose(not_a_matrix) | 31 transpose(not_a_matrix) |
32 except NotAMatrix as e: | 32 except NotAMatrix as _e: |
33 pass | 33 e = _e |
34 assert e is not None | 34 assert e is not None |
35 assert isinstance(e, NotAMatrix) | 35 assert isinstance(e, NotAMatrix) |
36 | 36 |
37 if __name__ == '__main__': | 37 if __name__ == '__main__': |
38 unittest.main() | 38 unittest.main() |