Changeset 1166 for branches/4.2/bindings/python/nxstest.py
- Timestamp:
- 15/01/09 10:43:11 (3 years ago)
- File:
-
- 1 edited
-
branches/4.2/bindings/python/nxstest.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/bindings/python/nxstest.py
r999 r1166 94 94 # Write numeric data 95 95 for var in ['i1','i2','i4','i8','r4']: 96 if mode is 'w4' and var is 'i8': continue 96 97 name = var+'_data' 97 98 val = locals()[var] … … 183 184 return True 184 185 185 def check(filename ):186 def check(filename, mode): 186 187 global failures 187 188 failures = 0 … … 213 214 ('r8','float64',(5,4),1) 214 215 ]: 216 if mode is 'w4' and name is 'i8': continue 215 217 n = numpy.prod(shape) 216 218 expected = numpy.arange(n,dtype=dtype).reshape(shape)*scale … … 347 349 if not quiet: 348 350 show_structure(filename) 349 failures = check(filename )351 failures = check(filename,mode) 350 352 if external: failures += test_external(mode,quiet) 351 353 return failures
Note: See TracChangeset
for help on using the changeset viewer.
