summaryrefslogtreecommitdiffstats
path: root/library/tcltest
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2020-01-30 15:39:56 (GMT)
committersebres <sebres@users.sourceforge.net>2020-01-30 15:39:56 (GMT)
commit61962d02f55c207c7e67880414cd790809dde54f (patch)
tree170977804f33edd1b8c0ed139d38a15b27bb79e3 /library/tcltest
parentf58b90fb022b744619f4a7af445bac8a561bde7a (diff)
parentf05d9af86d492cd0b158969b5190ccc651e91db4 (diff)
downloadtcl-61962d02f55c207c7e67880414cd790809dde54f.zip
tcl-61962d02f55c207c7e67880414cd790809dde54f.tar.gz
tcl-61962d02f55c207c7e67880414cd790809dde54f.tar.bz2
merge 8.5
Diffstat (limited to 'library/tcltest')
-rw-r--r--library/tcltest/tcltest.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index c51467b..e5cfc77 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -970,7 +970,7 @@ proc tcltest::testConstraint {constraint {value ""}} {
return $testConstraints($constraint)
}
# Check for boolean values
- if {[catch {expr {$value && $value}} msg]} {
+ if {[catch {expr {$value && 1}} msg]} {
return -code error $msg
}
if {[limitConstraints] && ($constraint ni $Option(-constraints))} {