summaryrefslogtreecommitdiffstats
path: root/libdimension-python/tests/canvas.py
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-18 17:02:26 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-18 17:02:26 -0400
commitd6aa225ca7990fde1eac09e28078e71b73d113ce (patch)
tree0e23549ee8ed93edd8f8bc9ff8c90af93fe21faa /libdimension-python/tests/canvas.py
parent126c9b7b4b2c5f43b7d86f821bf5b7a416836a7e (diff)
downloaddimension-d6aa225ca7990fde1eac09e28078e71b73d113ce.tar.xz
Fix --disable-png behaviour in the Python module.
Diffstat (limited to 'libdimension-python/tests/canvas.py')
-rwxr-xr-xlibdimension-python/tests/canvas.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension-python/tests/canvas.py b/libdimension-python/tests/canvas.py
index 3b2057e..239a548 100755
--- a/libdimension-python/tests/canvas.py
+++ b/libdimension-python/tests/canvas.py
@@ -19,8 +19,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
#########################################################################
-from dimension import *
import errno
+from dimension import *
# Treat warnings as errors for tests
die_on_warnings(True)
@@ -35,7 +35,7 @@ try:
canvas.optimize_PNG()
except OSError as e:
if e.errno == errno.ENOSYS:
- havePNG = False
+ have_PNG = False
else:
raise