diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-01-01 15:14:42 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-01-01 15:14:42 (GMT) |
commit | 3ebd74d3d8fd0c54d15b9b41d6859595655e7205 (patch) | |
tree | 06031b0878fe01f3aa9ec4610a723046d9c4fe24 /tests/oo.test | |
parent | acda4274ef183d068941ca26ec07cf62197f323f (diff) | |
download | tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.zip tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.tar.gz tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.tar.bz2 |
Clean up of tests and conversion to tcltest 2. Target has been to get init and
cleanup code out of the test body and into the -setup/-cleanup stanzas.
Diffstat (limited to 'tests/oo.test')
-rw-r--r-- | tests/oo.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/oo.test b/tests/oo.test index bea9e1a..fbeecc6 100644 --- a/tests/oo.test +++ b/tests/oo.test @@ -7,11 +7,11 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: oo.test,v 1.42 2010/11/18 10:10:14 dkf Exp $ +# RCS: @(#) $Id: oo.test,v 1.43 2011/01/01 15:14:43 dkf Exp $ package require -exact TclOO 0.6.2 ;# Must match value in generic/tclOO.h -if {[lsearch [namespace children] ::tcltest] == -1} { - package require tcltest 2 +package require tcltest 2 +if {"::tcltest" in [namespace children]} { namespace import -force ::tcltest::* } |