diff options
Diffstat (limited to 'tests/pkg.test')
-rw-r--r-- | tests/pkg.test | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/pkg.test b/tests/pkg.test index 7d818d4..62075f3 100644 --- a/tests/pkg.test +++ b/tests/pkg.test @@ -19,11 +19,10 @@ if {[lsearch [namespace children] ::tcltest] == -1} { # Do all this in a slave interp to avoid garbaging the # package list set i [interp create] -interp eval $i [list set argv $argv] -interp eval $i [list package require tcltest 2] -interp eval $i [list namespace import -force ::tcltest::*] -interp eval $i { +tcltest::loadIntoSlaveInterpreter $i {*}$argv +interp eval $i { +namespace import -force ::tcltest::* package forget {*}[package names] set oldPkgUnknown [package unknown] package unknown {} |