Ignore:
Timestamp:
Oct 22, 2008, 3:32:09 PM (16 years ago)
Author:
ole
Message:

A bit more fiddling with caching and circular structures not
involving instances.

All relevant tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/caching/test_caching.py

    r5855 r5856  
    382382           
    383383
    384     def XXtest_caching_of_simple_circular_structures(self):
    385    
    386         # FIXME (Ole): This one recurses infinitly on
    387         # arg strings.
    388        
     384    def test_caching_of_simple_circular_dictionaries(self):
    389385        """test_caching_of_circular_structures
    390386       
     
    393389        """
    394390       
    395         verbose = True
     391        verbose = False #True
    396392       
    397393        # Create input argument
     
    400396        A['B'] = B # Make it circular
    401397       
    402         print A
    403 
    404398        # Test caching
    405399        comprange = 2
     
    409403            T1 = cache(f_generic, A, evaluate=1,
    410404                       compression=comp, verbose=verbose)
    411                        
    412             import sys; sys.exit()
    413405                       
    414406
     
    425417
    426418
    427             assert T1 == T2, 'Cached result does not match computed result'
    428             assert T2 == T3, 'Cached result does not match computed result'
    429            
    430                                    
     419            msg = 'Cached result does not match computed result'
     420            assert str(T1) == str(T2), msg
     421            assert str(T2) == str(T3), msg
     422
    431423           
    432424           
Note: See TracChangeset for help on using the changeset viewer.