summaryrefslogtreecommitdiffstats
path: root/tests/while-old.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/while-old.test')
-rw-r--r--tests/while-old.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/while-old.test b/tests/while-old.test
index e33bd0b..d621d75 100644
--- a/tests/while-old.test
+++ b/tests/while-old.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-if {[lsearch [namespace children] ::tcltest] == -1} {
+if {"::tcltest" ni [namespace children]} {
package require tcltest
namespace import -force ::tcltest::*
}