فهرست منبع

Merge pull request #5863 from infosiftr/hyl

Update python-hy and hylang tests
Tianon Gravi 6 سال پیش
والد
کامیت
d7a3a0e32b
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      test/tests/hylang-sh/container.hy
  2. 3 3
      test/tests/python-hy/container.sh

+ 1 - 1
test/tests/hylang-sh/container.hy

@@ -2,7 +2,7 @@
   (+ 2 2)
   (print))
 
-(import [subprocess] [sys])
+(import subprocess sys)
 (subprocess.check_call [sys.executable "-m" "pip" "install" "-q" "sh"])
 
 (import [sh [echo]])

+ 3 - 3
test/tests/python-hy/container.sh

@@ -16,11 +16,11 @@ fi
 
 # Hy is complicated, and uses Python's internal AST representation directly, and thus Hy releases usually lag behind a little on major Python releases (and we don't want that to gum up our tests)
 # see https://github.com/hylang/hy/issues/1111 for example breakage
-if ! "$python" -c 'import sys; exit((sys.version_info[0] == 3 and sys.version_info[1] >= 7) or sys.version_info[0] > 3)'; then
-	echo >&2 'skipping Hy test -- not allowed on Python 3.7+ (yet!)'
+if ! "$python" -c 'import sys; exit((sys.version_info[0] == 3 and sys.version_info[1] >= 8) or sys.version_info[0] > 3)'; then
+	echo >&2 'skipping Hy test -- not allowed on Python 3.8+ (yet!)'
 	cat expected-std-out.txt # cheaters gunna cheat
 	exit
 fi
 
-pip install -q 'hy==0.13.0'
+pip install -q 'hy==0.16.0'
 hy ./container.hy