Fix a test for Python 2
This commit is contained in:
parent
9f4b630e14
commit
23a7363cce
@ -462,9 +462,9 @@
|
|||||||
(setv passed False)
|
(setv passed False)
|
||||||
(try
|
(try
|
||||||
(raise)
|
(raise)
|
||||||
;; Python 2 raises TypeError
|
;; Python 2 raises IndexError here (due to the previous test)
|
||||||
;; Python 3 raises RuntimeError
|
;; Python 3 raises RuntimeError
|
||||||
(except [[TypeError RuntimeError]]
|
(except [[IndexError RuntimeError]]
|
||||||
(setv passed True)))
|
(setv passed True)))
|
||||||
(assert passed)
|
(assert passed)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user