Skip to content

Commit

Permalink
I forgot to reset the global adaptation manager...
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Berkes committed Feb 25, 2014
1 parent cee90c6 commit 1d68a88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions traits/tests/test_automatic_adaptation.py
Expand Up @@ -2,6 +2,7 @@
# Copyright 2014 Enthought, Inc.
###############################################################################

from traits.adaptation.api import reset_global_adaptation_manager
from traits.api import HasTraits, Instance, List, register_factory, TraitError
from traits.testing.unittest_tools import unittest

Expand All @@ -28,6 +29,13 @@ class FooContainer(HasTraits):

class TestAutomaticAdaptation(unittest.TestCase):

#### 'TestCase' protocol ##################################################

def setUp(self):
reset_global_adaptation_manager()

#### Tests ################################################################

def test_instance_trait_automatic_adaptation(self):
bar = Bar()
foo_container = FooContainer()
Expand Down

0 comments on commit 1d68a88

Please sign in to comment.