Skip to content

Commit

Permalink
Remove a test that uses UITester
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Apr 24, 2024
1 parent ba745ce commit 840a824
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions traits/tests/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
from traits.api import (
Any, BaseEnum, Enum, HasTraits, Int, List, Property, Set, TraitError,
Tuple)
from traits.etsconfig.api import ETSConfig
from traits.testing.optional_dependencies import requires_traitsui

is_null = ETSConfig.toolkit == 'null'


class FooEnum(enum.Enum):
Expand Down Expand Up @@ -340,15 +336,3 @@ class HasEnumInList(HasTraits):
model.digit_sequence = [-1, 0, 1, 1]
with self.assertRaises(TraitError):
model.digit_sequence = [-1, 0, 2, 1]


@requires_traitsui
@unittest.skipIf(is_null, "GUI toolkit not available")
class TestGui(unittest.TestCase):

def test_create_editor(self):
from traitsui.testing.api import UITester

obj = EnumCollectionGUIExample()
with UITester().create_ui(obj):
pass

0 comments on commit 840a824

Please sign in to comment.