Ignore:
Timestamp:
16/01/09 14:11:32 (3 years ago)
Author:
Freddie Akeroyd
Message:

Use == rather than "is" for comparison. Refs #149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/nxstest.py

    r1159 r1170  
    9494    # Write numeric data 
    9595    for var in ['i1','i2','i4','i8','r4']: 
    96         if mode is 'w4' and var is 'i8': continue 
     96        if mode == 'w4' and var == 'i8': continue 
    9797        name = var+'_data' 
    9898        val = locals()[var] 
     
    214214         ('r8','float64',(5,4),1) 
    215215         ]: 
    216         if mode is 'w4' and name is 'i8': continue 
     216        if mode == 'w4' and name == 'i8': continue 
    217217        n = numpy.prod(shape) 
    218218        expected = numpy.arange(n,dtype=dtype).reshape(shape)*scale 
Note: See TracChangeset for help on using the changeset viewer.