Opened 16 years ago
Closed 16 years ago
#322 closed defect (fixed)
Error in unit test using python 2.4
Reported by: | steve | Owned by: | Ole |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Compilation and installation | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
I am getting the following error from the unittest
====================================================================== ERROR: Test that sww information can be converted correctly to asc/prj
Traceback (most recent call last):
File "/home/steve/ga/anuga_core/source/anuga/shallow_water/test_data_manager.py", line 2604, in test_sww2dem_asc_missing_points
format = 'asc')
File "/home/steve/ga/anuga_core/source/anuga/shallow_water/data_manager.py", line 2267, in sww2dem
var_list = get_vars_in_expression(quantity)
File "/home/steve/ga/anuga_core/source/anuga/utilities/system_tools.py", line 277, in get_vars_in_expression
return get_vars_body(compiler.parse(source))
File "/home/steve/ga/anuga_core/source/anuga/utilities/system_tools.py", line 271, in get_vars_body
if any(isinstance(child, Node) for child in node.getChildren()):
NameError?: global name 'any' is not defined
I assume this is because I am still using python 2.4, which I need to do until we move to numpy.
Change History (1)
comment:1 Changed 16 years ago by rwilson
- Resolution set to fixed
- Status changed from new to closed
Removed usage of function introduced in python 2.5.