Skip to content

Commit

Permalink
properly skip examples if Qt is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed May 5, 2023
1 parent ba7bf69 commit f0a5ed4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import pytest

from enaml import imports
from enaml.qt import QT_API, PYSIDE6_API
from enaml.core.parser import parse
from enaml.core.enaml_compiler import EnamlCompiler
from enaml.widgets.api import Window
Expand All @@ -24,6 +23,11 @@
handle_question,
)

try:
from enaml.qt import QT_API, PYSIDE6_API
except ImportError:
pass # test will be skipped in this case

try:
import numpy
except ImportError:
Expand Down

0 comments on commit f0a5ed4

Please sign in to comment.