summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-04 16:45:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-04 16:45:51 (GMT)
commitff741e8b29f173130bc6e8919eafa763738bffd0 (patch)
tree091486071eb08cbd4e32fdeffc90313db7f1aa31 /tests/encoding.test
parent1674055d7a5077032b0ae8c68af6e7593420cdfd (diff)
parent0aaf6122a593480ef13b8a66624a7565c087eb21 (diff)
downloadtcl-ff741e8b29f173130bc6e8919eafa763738bffd0.zip
tcl-ff741e8b29f173130bc6e8919eafa763738bffd0.tar.gz
tcl-ff741e8b29f173130bc6e8919eafa763738bffd0.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index 189b89c..d89d8a3 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -8,13 +8,15 @@
# 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
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
+ namespace import -force ::tcltest::*
+}
+
namespace eval ::tcl::test::encoding {
variable x
-namespace import -force ::tcltest::*
-
catch {
::tcltest::loadTestedCommands
package require -exact Tcltest [info patchlevel]