Skip to content

Commit

Permalink
force to use the default but slow PNGImageEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Nov 27, 2014
1 parent a0b3f01 commit de7d04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kiva/tests/test_gl_drawing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import contextlib

import pyglet
from pyglet.image.codecs.png import PNGImageEncoder

from kiva.tests.drawing_tester import DrawingImageTester
from kiva.gl import GraphicsContext
Expand Down Expand Up @@ -39,7 +40,8 @@ def draw_and_check(self):
yield
self.window.dispatch_events()
filename = "{0}.png".format(self.filename)
pyglet.image.get_buffer_manager().get_color_buffer().save(filename)
buffer = pyglet.image.get_buffer_manager()
buffer.get_color_buffer().save(filename, encoder=PNGImageEncoder())
self.assertImageSavedWithContent(filename)


Expand Down

0 comments on commit de7d04a

Please sign in to comment.