diff options
Diffstat (limited to 'tests/namespace.test')
-rw-r--r-- | tests/namespace.test | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index f8433cc..3228d72 100644 --- a/tests/namespace.test +++ b/tests/namespace.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: namespace.test,v 1.66 2007/03/12 19:10:50 dgp Exp $ +# RCS: @(#) $Id: namespace.test,v 1.67 2007/06/12 12:34:04 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -172,7 +172,10 @@ test namespace-7.6 {recursive Tcl_DeleteNamespace, no active call frames in ns} } {} test namespace-7.7 {Bug 1655305} -setup { interp create slave - slave hide info + # Can't invoke through the ensemble, since deleting the global namespace + # (indirectly, via deleting ::tcl) deletes the ensemble. + slave eval {rename ::tcl::Info_commands ::infocommands} + slave hide infocommands slave eval { proc foo {} { namespace delete :: @@ -180,7 +183,7 @@ test namespace-7.7 {Bug 1655305} -setup { } } -body { slave eval foo - slave invokehidden info commands + slave invokehidden infocommands } -cleanup { interp delete slave } -result {} |