summaryrefslogtreecommitdiffstats
path: root/tests/ioTrans.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-04 15:48:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-04 15:48:08 (GMT)
commitf2963d15d036e305300773f74a602c9c0a8c9229 (patch)
treee69df441c3690a4342a3655ca658ce086eb1b68a /tests/ioTrans.test
parenta4abf50c23f2a2b458181704617172b1de3e772a (diff)
downloadtcl-f2963d15d036e305300773f74a602c9c0a8c9229.zip
tcl-f2963d15d036e305300773f74a602c9c0a8c9229.tar.gz
tcl-f2963d15d036e305300773f74a602c9c0a8c9229.tar.bz2
Let all test-cases load the "tcltest" package the same way. Depend on tcltest 2.5, since we never test with earlier tcltest versions
Diffstat (limited to 'tests/ioTrans.test')
-rw-r--r--tests/ioTrans.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ioTrans.test b/tests/ioTrans.test
index 867362a..2872fbb 100644
--- a/tests/ioTrans.test
+++ b/tests/ioTrans.test
@@ -11,8 +11,8 @@
# 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} {
- package require tcltest 2
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
namespace import -force ::tcltest::*
}
@@ -36,8 +36,8 @@ testConstraint thread [expr {0 == [catch {package require Thread 2.7-}]}]
# can access this variable.
set helperscript {
- if {[lsearch [namespace children] ::tcltest] == -1} {
- package require tcltest 2
+ if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
namespace import -force ::tcltest::*
}