Update to 8.5.19
This commit is contained in:
@@ -301,7 +301,7 @@ test namespace-9.4 {Tcl_Import, simple import} {
|
||||
}
|
||||
test_ns_import::p
|
||||
} {cmd1: 123}
|
||||
test namespace-9.5 {Tcl_Import, can't redefine cmd unless allowOverwrite!=0} {
|
||||
test namespace-9.5 {Tcl_Import, RFE 1230597} {
|
||||
list [catch {namespace eval test_ns_import {namespace import ::test_ns_export::*}} msg] $msg
|
||||
} {0 {}}
|
||||
test namespace-9.6 {Tcl_Import, cmd redefinition ok if allowOverwrite!=0} {
|
||||
@@ -556,6 +556,15 @@ test namespace-13.1 {DeleteImportedCmd, deletes imported cmds} {
|
||||
lappend l [info commands ::test_ns_import::*]
|
||||
}
|
||||
} {::test_ns_import::cmd1 {}}
|
||||
test namespace-13.2 {DeleteImportedCmd, Bug a4494e28ed} {
|
||||
# Will panic if still buggy
|
||||
namespace eval src {namespace export foo; proc foo {} {}}
|
||||
namespace eval dst {namespace import [namespace parent]::src::foo}
|
||||
trace add command src::foo delete \
|
||||
"[list namespace delete [namespace current]::dst] ;#"
|
||||
proc src::foo {} {}
|
||||
namespace delete src
|
||||
} {}
|
||||
|
||||
test namespace-14.1 {TclGetNamespaceForQualName, absolute names} {
|
||||
catch {namespace delete {*}[namespace children :: test_ns_*]}
|
||||
|
||||
Reference in New Issue
Block a user