summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-09 09:39:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-09 09:39:59 (GMT)
commita1fb5545852518890326ddcf62f18e05de2425e3 (patch)
treeec1892ea5948180128e96f0ab103b057a97ebc2e /tests
parent38555b60a2647d88236a922f72741a3f4611ccd2 (diff)
downloadtcl-a1fb5545852518890326ddcf62f18e05de2425e3.zip
tcl-a1fb5545852518890326ddcf62f18e05de2425e3.tar.gz
tcl-a1fb5545852518890326ddcf62f18e05de2425e3.tar.bz2
Fix tests/tcltest.test testcases (missing "namespace import")
Diffstat (limited to 'tests')
-rw-r--r--tests/tcltest.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test
index 750a20d..075cdf6 100644
--- a/tests/tcltest.test
+++ b/tests/tcltest.test
@@ -17,9 +17,9 @@
# interfere with the [test] doing the testing.
#
-if {[catch {package require tcltest 2.1}]} {
- puts stderr "Skipping tests in [info script]. tcltest 2.1 required."
- return
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.1
+ namespace import -force ::tcltest::*
}
# File permissions broken on wsl without some "exotic" wsl configuration