]> gitweb.factorcode.org Git - factor.git/commitdiff
python.syntax: fix tests when run first.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Mar 2014 03:01:11 +0000 (20:01 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Mar 2014 03:01:11 +0000 (20:01 -0700)
extra/python/python-tests.factor
extra/python/syntax/syntax-tests.factor

index 26a4dbd2242f0a1148a0625a880f136b1863293f..4fbb29ec385047ff501e3350a297678c88201517 100644 (file)
@@ -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
 
index 9cbaf5f080a94b4a699ad7e1cf13f6a4b71d306e..23599661e0875b0c0b0e60e590c0a1d1cb108a2d 100644 (file)
@@ -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 =>