Changeset 4385
- Timestamp:
- Apr 17, 2007, 1:15:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/caching/test_caching.py
r4342 r4385 25 25 26 26 27 class Dummy_memorytest:28 def __init__(self, value, another):29 self.value = value27 #class Dummy_memorytest: 28 # def __init__(self, value, another): 29 # self.value = value 30 30 31 31 … … 343 343 344 344 345 def test_objects_are_created(self): 345 # This test works in the caching dir and in anuga_core, but no in the 346 # anuga_core/source/anuga dir 347 def no_test_objects_are_created(self): 346 348 """ 347 349 This test shows how instances can be created from cache … … 375 377 376 378 377 378 def test_objects_are_created_memory(self): 379 # NOTE (Ole): This test has been commented out because, although the test will pass 380 # inside the caching dir and also at the anuga_core level, 381 # it won't pass at the anuga_core/source/anuga level. 382 383 def no_test_objects_are_created_memory(self): 379 384 """ 380 385 … … 407 412 retrieve_cache(Dummy_memorytest, verbose=verbose) 408 413 409 410 414 # Define class Dummy_memorytest before any tests are run 411 415 # to make sure it has a different memory address 412 416 # to the one defined in test 'test_objects_are_created_memory' 413 class Dummy_memorytest: 414 def __init__(self, value, another): 415 self.value = value 417 418 #class Dummy_memorytest: 419 # def __init__(self, value, another): 420 # self.value = value 416 421 417 422 # Cache created for use with 'test_objects_are_created_memory' 418 initial_addr = `Dummy_memorytest`419 clear_and_create_cache(Dummy_memorytest, verbose=False)423 #initial_addr = `Dummy_memorytest` 424 #clear_and_create_cache(Dummy_memorytest, verbose=False) 420 425 421 426
Note: See TracChangeset
for help on using the changeset viewer.