Fix a test for Python 2

This commit is contained in:
Kodi Arfer 2017-02-04 12:03:37 -08:00
parent 9f4b630e14
commit 23a7363cce

View File

@ -462,9 +462,9 @@
(setv passed False)
(try
(raise)
;; Python 2 raises TypeError
;; Python 2 raises IndexError here (due to the previous test)
;; Python 3 raises RuntimeError
(except [[TypeError RuntimeError]]
(except [[IndexError RuntimeError]]
(setv passed True)))
(assert passed)