summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-12-10 13:19:56 (GMT)
committersebres <sebres@users.sourceforge.net>2019-12-10 13:19:56 (GMT)
commitbeb513719251e7f2b5670654c516335594b7face (patch)
treefe2a69d08a42e37ceddb61a3fd6a7e47d86901f2 /library
parent4c162a421c414f80865fd1b1e2f56ae3493d16a9 (diff)
parent4a214309b28e754509933e08bd3968548a73f34c (diff)
downloadtcl-beb513719251e7f2b5670654c516335594b7face.zip
tcl-beb513719251e7f2b5670654c516335594b7face.tar.gz
tcl-beb513719251e7f2b5670654c516335594b7face.tar.bz2
merge 8.7
Diffstat (limited to 'library')
-rw-r--r--library/tcltest/tcltest.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index e5dbdfe..c51467b 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -1983,7 +1983,7 @@ proc tcltest::test {name description args} {
}
# First, run the setup script (or a hook if it presents):
- if {[set cmd [uplevel 1 {namespace which SetupTest}]] ne ""} {
+ if {[set cmd [namespace which -command [namespace current]::SetupTest]] ne ""} {
set setup [list $cmd $setup]
}
set processTest 1
@@ -2081,7 +2081,7 @@ proc tcltest::test {name description args} {
}
# Always run the cleanup script (or a hook if it presents):
- if {[set cmd [uplevel 1 {namespace which CleanupTest}]] ne ""} {
+ if {[set cmd [namespace which -command [namespace current]::CleanupTest]] ne ""} {
set cleanup [list $cmd $cleanup]
}
set code [catch {uplevel 1 $cleanup} cleanupMsg]
@@ -2397,7 +2397,7 @@ proc tcltest::RunTest {name script} {
}
# run the test script (or a hook if it presents):
- if {[set cmd [uplevel 1 {namespace which EvalTest}]] ne ""} {
+ if {[set cmd [namespace which -command [namespace current]::EvalTest]] ne ""} {
set script [list $cmd $script]
}
set code [catch {uplevel 1 $script} actualAnswer]