Changeset 7317 for anuga_core/source/anuga/caching/test_caching.py
- Timestamp:
- Jul 22, 2009, 9:22:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/caching/test_caching.py
r7309 r7317 50 50 51 51 def retrieve_cache(Dummy, verbose=False): 52 if verbose: print 'Check that cache is there'52 if verbose: print('Check that cache is there') 53 53 54 54 X = cache(Dummy, args=(9,10), test=1, … … 386 386 f2 = call(5, 7) 387 387 388 #print myhash(f1)389 #print myhash(f2)390 391 388 # Check that hash value of callable objects don't change 392 389 # FIXME (Ole): The hash values do appear to change when OS … … 411 408 bc2 = get_bytecode(f2) 412 409 413 #print 'bc1', bc1414 #print 'bc2', bc2415 416 410 msg = 'Byte code should be different' 417 411 assert bc1 != bc2, msg … … 631 625 632 626 T4 = cache(f, (a,b,c,N), {'x':x, 'y':y}, test=1) 633 #print 'T4', T4634 627 assert T4 is None, "Option 'test' when cache absent failed" 635 628
Note: See TracChangeset
for help on using the changeset viewer.