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
python.objects python.syntax python.tests sequences sets splitting tools.test
unicode.categories ;
USING: arrays assocs destructors fry io.files.temp kernel math namespaces
python python.ffi python.objects python.syntax python.tests sequences sets
splitting tools.test unicode.categories ;
IN: python.syntax.tests
! Importing functions
@ -80,7 +80,7 @@ PY-METHODS: file =>
tell ( self -- n ) ;
[ t ] [
"testfile" >py "wb" >py open
"python-file" temp-file >py "wb" >py open
[ tell ] [ fileno ] [ close ] tri
[ >factor integer? ] bi@ and
] py-test
@ -147,3 +147,6 @@ PY-METHODS: ArgumentParser =>
format_help >factor
] with-destructors [ blank? ] trim " " split "badger" swap in?
] 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 ;
IN: python.syntax
py-initialize
<PRIVATE
SYMBOL: current-context