Ignore:
Timestamp:
02/19/06 03:10:24 (8 years ago)
Author:
xi
Message:

Fix segfault under Python2.3.

Support for complex numbers.

Add /usr/local to the search path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_pickle.py

    r36 r49  
    1212- !python/long 12345678901234567890 
    1313- !python/float 123.456 
    14 - !python/float 123.4560000001 
     14- !python/float 123456e-3 
     15- !python/complex 1.0 
     16- !python/complex 0.0+1.0j 
    1517- !python/str foo bar 
    16 - !python/unicode FOO ЀУ bar бар 
     18- !python/unicode FOO ЀУ bar ба 
    1719- !python/list [1, 2, 3] 
    1820- !python/tuple [foo, bar] 
     
    2527    12345678901234567890L, 
    2628    123.456, 
    27     123.4560000001, 
     29    123.456, 
     30    1+0j, 
     31    1j, 
    2832    'foo bar', 
    29     unicode('FOO ЀУ bar бар', 'utf-8'), 
     33    unicode('FOO ЀУ bar ба', 'utf-8'), 
    3034    [1, 2, 3], 
    3135    ('foo', 'bar'), 
     
    7579    object, 
    7680] 
     81 
     82import sys, unittest, encodings.cp1251, os.path 
     83 
     84MODULES = """ 
     85- !python/module:sys 
     86- !python/module:unittest 
     87- !python/module:encodings.cp1251 
     88- !python/module:os.path 
     89""", [sys, unittest, encodings.cp1251, os.path] 
    7790 
    7891class AnObject(object): 
     
    246259        self._testPickle(NAMES) 
    247260 
     261    def testModules(self): 
     262        self._testPickle(MODULES) 
     263 
    248264    def testObjects(self): 
    249265        self._testPickle(OBJECTS) 
Note: See TracChangeset for help on using the changeset viewer.