diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-04 15:48:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-04 15:48:08 (GMT) |
commit | 2bef843b41033512d0b7ab02969350ac88b2c82b (patch) | |
tree | e69df441c3690a4342a3655ca658ce086eb1b68a /tests/namespace.test | |
parent | 6657afc87723179fda966d2bd9dab7cf712852b9 (diff) | |
download | tcl-2bef843b41033512d0b7ab02969350ac88b2c82b.zip tcl-2bef843b41033512d0b7ab02969350ac88b2c82b.tar.gz tcl-2bef843b41033512d0b7ab02969350ac88b2c82b.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/namespace.test')
-rw-r--r-- | tests/namespace.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 2b25803..8209cf3 100644 --- a/tests/namespace.test +++ b/tests/namespace.test @@ -12,8 +12,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 -namespace import -force ::tcltest::* +if {"::tcltest" ni [namespace children]} { + package require tcltest 2.5 + namespace import -force ::tcltest::* +} testConstraint memory [llength [info commands memory]] ::tcltest::loadTestedCommands |