diff options
Diffstat (limited to 'itcl/itcl/tests/body.test')
-rw-r--r-- | itcl/itcl/tests/body.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/itcl/itcl/tests/body.test b/itcl/itcl/tests/body.test index 079a69cf94b..f22b05ba79c 100644 --- a/itcl/itcl/tests/body.test +++ b/itcl/itcl/tests/body.test @@ -13,12 +13,12 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. -package require tcltest -namespace import -force ::tcltest::* +if {[lsearch [namespace children] ::tcltest] == -1} { + package require tcltest 2.1 + namespace import -force ::tcltest::test +} -if {[string compare test [info procs test]] == 1} then {source defs} - -package require Itcl +::tcltest::loadTestedCommands # ---------------------------------------------------------------------- # Test "body" command |