summaryrefslogtreecommitdiffstats
path: root/tests/imgPNG.test
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-01-13 01:46:05 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-01-13 01:46:05 (GMT)
commit4a96ce86821a373b23644857f6b01261d1fd6c1c (patch)
tree2bb2e17fa91b47afa565195e5553ba50edf99aa9 /tests/imgPNG.test
parent19458a73a3f2e0d6dc63f4127d47ca3f48af0e5d (diff)
downloadtk-4a96ce86821a373b23644857f6b01261d1fd6c1c.zip
tk-4a96ce86821a373b23644857f6b01261d1fd6c1c.tar.gz
tk-4a96ce86821a373b23644857f6b01261d1fd6c1c.tar.bz2
Tk tests that create images need to be independent of the interpreter environment.
Diffstat (limited to 'tests/imgPNG.test')
-rw-r--r--tests/imgPNG.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/imgPNG.test b/tests/imgPNG.test
index 1d38ce6..7fb2622 100644
--- a/tests/imgPNG.test
+++ b/tests/imgPNG.test
@@ -8,12 +8,13 @@
# Copyright (c) 2008 Donal K. Fellows
# All rights reserved.
#
-# RCS: @(#) $Id: imgPNG.test,v 1.1 2008/12/28 13:08:38 dkf Exp $
+# RCS: @(#) $Id: imgPNG.test,v 1.2 2009/01/13 01:46:06 patthoyts Exp $
package require tcltest 2.2
namespace import ::tcltest::*
eval tcltest::configure $argv
tcltest::loadTestedCommands
+imageInit
namespace eval png {
variable encoded
@@ -62,7 +63,7 @@ test png-1.4 {reading basic images; alpha} -setup {
}
namespace delete png
-image delete {*}[image names]
+imageFinish
cleanupTests
return