From 23a7363cce2a5561f877eef4eb88c88ec87334d5 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Sat, 4 Feb 2017 12:03:37 -0800 Subject: [PATCH] Fix a test for Python 2 --- tests/native_tests/language.hy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/native_tests/language.hy b/tests/native_tests/language.hy index 1ed7260..b5f8d43 100644 --- a/tests/native_tests/language.hy +++ b/tests/native_tests/language.hy @@ -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)