Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Dec 12, 2014
1 parent 66f1e7a commit 229415e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions kiva/tests/test_agg_drawing.py
Expand Up @@ -5,9 +5,6 @@

class TestAggDrawing(DrawingImageTester, unittest.TestCase):

def setUp(self):
DrawingImageTester.setUp(self)

def create_graphics_context(self, width, height):
return GraphicsContext((width, height))

Expand Down
4 changes: 2 additions & 2 deletions kiva/tests/test_gl_drawing.py
Expand Up @@ -8,8 +8,6 @@
PYGLET_NOT_AVAILABLE = False


from pyglet.image.codecs.png import PNGImageEncoder

from kiva.tests.drawing_tester import DrawingImageTester
from traits.testing.unittest_tools import unittest

Expand Down Expand Up @@ -42,6 +40,8 @@ def test_text_clip(self):

@contextlib.contextmanager
def draw_and_check(self):
from pyglet.image.codecs.png import PNGImageEncoder

self.window.clear()
self.window.switch_to()
self.window.dispatch_events()
Expand Down
2 changes: 1 addition & 1 deletion kiva/tests/test_pdf_drawing.py
Expand Up @@ -19,9 +19,9 @@


@unittest.skipIf(PYPDF2_NOT_AVAILABLE, "PDF tests require PyPDF2")
@unittest.skipIf(REPORTLAB_NOT_AVAILABLE, "Cannot import reportlab")
class TestPDFDrawing(DrawingTester, unittest.TestCase):

@unittest.skipIf(REPORTLAB_NOT_AVAILABLE, "Cannot import reportlab")
def create_graphics_context(self, width, height):
from reportlab.pdfgen.canvas import Canvas
from kiva.pdf import GraphicsContext
Expand Down

0 comments on commit 229415e

Please sign in to comment.