Ignore:
Timestamp:
05/22/06 15:49:54 (8 years ago)
Author:
xi
Message:

Revamp the inf/nan handling again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/test_representer.py

    r153 r173  
    3434                    self.failUnlessEqual(len(data1), len(data2)) 
    3535                    for item1, item2 in zip(data1, data2): 
     36                        if (item1 != item1 or (item1 == 0.0 and item1 == 1.0)) and  \ 
     37                                (item2 != item2 or (item2 == 0.0 and item2 == 1.0)): 
     38                            continue 
    3639                        self.failUnlessEqual(item1, item2) 
    3740                else: 
Note: See TracChangeset for help on using the changeset viewer.