~ubuntu-branches/debian/sid/mayavi2/sid

« back to all changes in this revision

Viewing changes to enthought/tvtk/tests/test_tvtk_base.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2009-03-27 04:34:55 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090327043455-vs6ox32daj6ndw33
Tags: 3.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import weakref
13
13
import vtk
14
14
import gc
15
 
import nose
16
15
 
17
16
from enthought.traits import api as traits
18
17
from enthought.tvtk import tvtk_base
278
277
                         False)
279
278
 
280
279
        # Check reload-safety.
281
 
        # Reloading causes havoc with nosetests based tests so we skip
282
 
        # in that case.
283
 
        raise nose.SkipTest()
284
280
        p = Prop()
285
281
        l1 = len(tvtk_base._object_cache)
286
282
        reload(tvtk_base)
287
283
        self.assertEqual(l1, len(tvtk_base._object_cache))
288
 
        
 
284
       
 
285
    # Reloading causes havoc with nosetests based tests so we skip in
 
286
    # that case.  Unittest will see the test just fine.
 
287
    test_zz_object_cache.__test__ = False
289
288
 
290
289
 
291
290
if __name__ == "__main__":