summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-07-05 17:33:06 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-07-05 17:33:06 (GMT)
commit1f35b60c45319b66403716359b926d67f7d9b328 (patch)
treefb9686aab851216c3b0d253f6cfd274b4d08b216 /tests
parent8c0298c965815529184e64e8356e55d9cd7ba8c2 (diff)
downloadtcl-1f35b60c45319b66403716359b926d67f7d9b328.zip
tcl-1f35b60c45319b66403716359b926d67f7d9b328.tar.gz
tcl-1f35b60c45319b66403716359b926d67f7d9b328.tar.bz2
* generic/tclNamesp.c: Allow for [namespace import] of a command
* tests/namespace.test: over a previous [namespace import] of itself without throwing an error. [RFE 1230597]
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 1cae7d9..947beb6 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.45 2005/06/14 13:46:04 dkf Exp $
+# RCS: @(#) $Id: namespace.test,v 1.46 2005/07/05 17:33:07 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -244,7 +244,7 @@ test namespace-9.4 {Tcl_Import, simple import} {
} {cmd1: 123}
test namespace-9.5 {Tcl_Import, can't redefine cmd unless allowOverwrite!=0} {
list [catch {namespace eval test_ns_import {namespace import ::test_ns_export::*}} msg] $msg
-} {1 {can't import command "cmd1": already exists}}
+} {0 {}}
test namespace-9.6 {Tcl_Import, cmd redefinition ok if allowOverwrite!=0} {
namespace eval test_ns_import {
namespace import -force ::test_ns_export::*