Changeset 1831 for inundation/caching


Ignore:
Timestamp:
Sep 14, 2005, 6:16:06 PM (19 years ago)
Author:
ole
Message:

Moved selftest to unit test

Location:
inundation/caching
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/caching/caching.py

    r1746 r1831  
    22# caching.py - Supervised caching of function results.
    33# Copyright (C) 1999, 2000, 2001, 2002 Ole Moller Nielsen
     4# Australian National University (1999-2003)
     5# Geoscience Australia (2003-present)
    46#
    57#    This program is free software; you can redistribute it and/or modify
     
    1921#
    2022#
    21 # Contact address: Ole.Nielsen@anu.edu.au
     23# Contact address: Ole.Nielsen@ga.gov.au
    2224#
    2325# Version 1.5.6 February 2002
     
    6769  'verbose': 1,          # Write messages to standard output
    6870  'bin': 1,              # Use binary format (more efficient)
    69   'compression': 1,      # Use zlip compression
     71  'compression': 1,      # Use zlib compression
    7072  'bytecode': 0,         # Recompute if bytecode has changed
    7173  'expire': 0            # Automatically remove files that have been accessed
     
    232234  #
    233235  import types, time, string
    234   ###FIXME DELETEfrom string import *
    235236
    236237  if not cachedir:
     
    402403# -----------------------------------------------------------------------------
    403404
     405#FIXME - moving to unit test
    404406def test(cachedir=None,verbose=0,compression=None):
    405407  """Test the functionality of caching.
     
    660662  else:
    661663    test_error('Recomputed value with changed dependencies failed')
    662  
     664
    663665  # Performance test (with statistics)
    664666  # Don't really rely on this as it will depend on specific computer.
     
    722724  # Test setoption (not yet implemented)
    723725  #
     726
    724727 
    725728#==============================================================================
Note: See TracChangeset for help on using the changeset viewer.