python: fix path to test file

db4
Björn Lindqvist 2014-02-07 17:10:10 +01:00 committed by John Benediktsson
parent b4037ae336
commit f69061f857
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
USING: arrays assocs destructors fry kernel math namespaces python python.ffi USING: arrays assocs destructors fry io.files.temp kernel math namespaces
python.objects python.syntax python.tests sequences sets splitting tools.test python python.ffi python.objects python.syntax python.tests sequences sets
unicode.categories ; splitting tools.test unicode.categories ;
IN: python.syntax.tests IN: python.syntax.tests
! Importing functions ! Importing functions
@ -80,7 +80,7 @@ PY-METHODS: file =>
tell ( self -- n ) ; tell ( self -- n ) ;
[ t ] [ [ t ] [
"testfile" >py "wb" >py open "python-file" temp-file >py "wb" >py open
[ tell ] [ fileno ] [ close ] tri [ tell ] [ fileno ] [ close ] tri
[ >factor integer? ] bi@ and [ >factor integer? ] bi@ and
] py-test ] py-test
@ -147,3 +147,6 @@ PY-METHODS: ArgumentParser =>
format_help >factor format_help >factor
] with-destructors [ blank? ] trim " " split "badger" swap in? ] with-destructors [ blank? ] trim " " split "badger" swap in?
] py-test ] py-test
! Can you pass a callback written in factor to a python function?
PY-FROM: wsgiref.simple_server => make_server ( iface port callback -- httpd ) ;

View File

@ -3,8 +3,6 @@ kernel lexer math namespaces parser python python.ffi python.objects sequences
sequences.generalizations vocabs.parser words ; sequences.generalizations vocabs.parser words ;
IN: python.syntax IN: python.syntax
py-initialize
<PRIVATE <PRIVATE
SYMBOL: current-context SYMBOL: current-context