From daec237feaaf7266a89775d29ca1a9afd9885949 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Wed, 12 Mar 2014 20:01:11 -0700 Subject: [PATCH] python.syntax: fix tests when run first. --- extra/python/python-tests.factor | 2 +- extra/python/syntax/syntax-tests.factor | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/extra/python/python-tests.factor b/extra/python/python-tests.factor index 26a4dbd224..4fbb29ec38 100644 --- a/extra/python/python-tests.factor +++ b/extra/python/python-tests.factor @@ -1,6 +1,6 @@ USING: accessors arrays assocs calendar continuations destructors fry kernel math namespaces python python.ffi python.objects sequences strings tools.test ; -IN: python.tests +IN: python py-initialize diff --git a/extra/python/syntax/syntax-tests.factor b/extra/python/syntax/syntax-tests.factor index 9cbaf5f080..23599661e0 100644 --- a/extra/python/syntax/syntax-tests.factor +++ b/extra/python/syntax/syntax-tests.factor @@ -1,7 +1,10 @@ -USING: arrays assocs destructors fry io.files.temp kernel math namespaces -python python.ffi python.objects python.syntax python.tests sequences sets +USING: arrays assocs destructors fry io.files.temp kernel math +namespaces python python.ffi python.objects sequences sets splitting tools.test unicode.categories ; -IN: python.syntax.tests +IN: python.syntax + +: py-test ( result quot -- ) + '[ _ with-destructors ] unit-test ; inline ! py-importing functions PY-FROM: os =>