summaryrefslogtreecommitdiff
path: root/itcl/itcl/tests/scope.test
diff options
context:
space:
mode:
Diffstat (limited to 'itcl/itcl/tests/scope.test')
-rw-r--r--itcl/itcl/tests/scope.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/itcl/itcl/tests/scope.test b/itcl/itcl/tests/scope.test
index 345790fb806..bd0bc3d43e0 100644
--- a/itcl/itcl/tests/scope.test
+++ b/itcl/itcl/tests/scope.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
# ----------------------------------------------------------------------
# Syntax of the "scope" command