diff --git a/tests/native_tests/core.hy b/tests/native_tests/core.hy index ead3960..ee74b6f 100644 --- a/tests/native_tests/core.hy +++ b/tests/native_tests/core.hy @@ -35,8 +35,9 @@ (defn assert-requires-num [f] (for [x ["foo" [] None]] - (assert-true (try (do (f x) False) - (except [e [TypeError]] True))))) + (try (f x) + (except [TypeError] True) + (else (assert False))))) (defn test-coll? [] "NATIVE: testing coll?"