From 36708e8e996700da256943b3e8162a29fa381473 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Mon, 10 Jun 2019 16:12:46 -0400 Subject: [PATCH] Fix a test for Python 3.8.0b1 `int`, among other types, no longer has a `__str__` method, so `(str '3)` now returns "(HyInteger 3)" instead of "3". --- tests/native_tests/native_macros.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/native_tests/native_macros.hy b/tests/native_tests/native_macros.hy index 61001db..d15a686 100644 --- a/tests/native_tests/native_macros.hy +++ b/tests/native_tests/native_macros.hy @@ -386,7 +386,7 @@ in expansions." ;; Now, let's use a `require`d macro that depends on another macro defined only ;; in this scope. (defmacro local-test-macro [x] - (.format "This is the local version of `nonlocal-test-macro` returning {}!" x)) + (.format "This is the local version of `nonlocal-test-macro` returning {}!" (int x))) (assert (= "This is the local version of `nonlocal-test-macro` returning 3!" (test-module-macro-2 3)))