Ignore:
Timestamp:
15/01/09 10:43:11 (3 years ago)
Author:
Freddie Akeroyd
Message:

python: don't test i8 on hdf4. Refs #101

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/bindings/python/nxstest.py

    r999 r1166  
    9494    # Write numeric data 
    9595    for var in ['i1','i2','i4','i8','r4']: 
     96        if mode is 'w4' and var is 'i8': continue 
    9697        name = var+'_data' 
    9798        val = locals()[var] 
     
    183184    return True 
    184185 
    185 def check(filename): 
     186def check(filename, mode): 
    186187    global failures 
    187188    failures = 0 
     
    213214         ('r8','float64',(5,4),1) 
    214215         ]: 
     216        if mode is 'w4' and name is 'i8': continue 
    215217        n = numpy.prod(shape) 
    216218        expected = numpy.arange(n,dtype=dtype).reshape(shape)*scale 
     
    347349    if not quiet: 
    348350        show_structure(filename) 
    349     failures = check(filename) 
     351    failures = check(filename,mode) 
    350352    if external: failures += test_external(mode,quiet) 
    351353    return failures 
Note: See TracChangeset for help on using the changeset viewer.