diff --git a/basis/xml/tests/test.factor b/basis/xml/tests/test.factor index 74ba931c79..e371c3aab5 100644 --- a/basis/xml/tests/test.factor +++ b/basis/xml/tests/test.factor @@ -73,3 +73,7 @@ SYMBOL: xml-file [ T{ xml-chunk f V{ "hello" } } ] [ "hello" string>xml-chunk ] unit-test [ "1.1" ] [ "" string>xml prolog>> version>> ] unit-test [ "ß" ] [ "ß" read-xml children>string ] unit-test + +! tests +! this tests just checks that pull-event doesn't raise an exception +[ ] [ "vocab:xml/tests/test.xml" binary [ pull-event drop ] with-file-reader ] unit-test \ No newline at end of file diff --git a/basis/xml/xml.factor b/basis/xml/xml.factor index cca1b5e2e0..a1d734f291 100755 --- a/basis/xml/xml.factor +++ b/basis/xml/xml.factor @@ -110,6 +110,7 @@ PRIVATE> TUPLE: pull-xml scope ; : ( -- pull-xml ) [ + init-parser input-stream [ ] change ! bring var in this scope init-xml text-now? on ] H{ } make-assoc