summaryrefslogtreecommitdiffstats
path: root/tests/unknown.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unknown.test')
-rw-r--r--tests/unknown.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unknown.test b/tests/unknown.test
index 7600cba..4cad132 100644
--- a/tests/unknown.test
+++ b/tests/unknown.test
@@ -11,8 +11,10 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-package require tcltest 2.5
-namespace import ::tcltest::*
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
+ namespace import -force ::tcltest::*
+}
unset -nocomplain x
catch {rename unknown unknown.old}