summaryrefslogtreecommitdiffstats
path: root/tests/tm.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-01-30 19:00:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-01-30 19:00:27 (GMT)
commitddaf86432d2523d3242c670af64654571f36a0d5 (patch)
tree43a466d8834829d1bb81dc12d20bdc9a442fb6d9 /tests/tm.test
parentf26510438d420ec20e8840063ca9c3cc8989663e (diff)
parent3ac002a666fce71f19f025288d9e18c0819bb91a (diff)
downloadtcl-ddaf86432d2523d3242c670af64654571f36a0d5.zip
tcl-ddaf86432d2523d3242c670af64654571f36a0d5.tar.gz
tcl-ddaf86432d2523d3242c670af64654571f36a0d5.tar.bz2
For [package] etc., select modernizations from Patrick Fradin.
Diffstat (limited to 'tests/tm.test')
-rw-r--r--tests/tm.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tm.test b/tests/tm.test
index 149a65d..1b22f8c 100644
--- a/tests/tm.test
+++ b/tests/tm.test
@@ -200,7 +200,7 @@ test tm-3.11 {tm: module path management, remove ignores unknown path} -setup {
proc genpaths {base} {
# Normalizing picks up drive letters on windows [Bug 1053568]
set base [file normalize $base]
- foreach {major minor} [split [info tclversion] .] break
+ lassign [split [package present Tcl] .] major minor
set results {}
set base [file join $base tcl$major]
lappend results [file join $base site-tcl]