Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test dependencies #1055

Merged
merged 2 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions enable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"cairo": ["pycairo"],
# Dependencies purely for running tests.
"test": [
"pyparsing", # for enable.savage tests
"PyPDF2<3.0", # for pdf drawing tests in kiva.
"setuptools",
],
Expand Down
2 changes: 1 addition & 1 deletion enable/tests/test_brush.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import numpy as np
from numpy.testing import assert_array_equal

from kiva.celiagg import GraphicsContext
from kiva.image import GraphicsContext
from kiva.testing import KivaTestAssistant
from traits.testing.api import UnittestTools

Expand Down
9 changes: 8 additions & 1 deletion kiva/tests/test_celiagg_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
# Thanks for using Enthought open source!
import unittest

from kiva.celiagg import GraphicsContext
from kiva.tests.drawing_tester import DrawingImageTester

try:
from kiva.celiagg import GraphicsContext
except ImportError:
CELIAGG_NOT_AVAILABLE = True
else:
CELIAGG_NOT_AVAILABLE = False


@unittest.skipIf(CELIAGG_NOT_AVAILABLE, "Cannot import celiagg")
class TestCeliaggDrawing(DrawingImageTester, unittest.TestCase):

def create_graphics_context(self, width=600, height=600, pixel_scale=2.0):
Expand Down