Changeset 49 for trunk/tests/test_pickle.py
- Timestamp:
- 02/19/06 03:10:24 (7 years ago)
- File:
-
- 1 edited
-
trunk/tests/test_pickle.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_pickle.py
r36 r49 12 12 - !python/long 12345678901234567890 13 13 - !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 15 17 - !python/str foo bar 16 - !python/unicode FOO ЀУ bar ба Ñ18 - !python/unicode FOO ЀУ bar ба 17 19 - !python/list [1, 2, 3] 18 20 - !python/tuple [foo, bar] … … 25 27 12345678901234567890L, 26 28 123.456, 27 123.4560000001, 29 123.456, 30 1+0j, 31 1j, 28 32 'foo bar', 29 unicode('FOO ЀУ bar ба Ñ', 'utf-8'),33 unicode('FOO ЀУ bar ба', 'utf-8'), 30 34 [1, 2, 3], 31 35 ('foo', 'bar'), … … 75 79 object, 76 80 ] 81 82 import sys, unittest, encodings.cp1251, os.path 83 84 MODULES = """ 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] 77 90 78 91 class AnObject(object): … … 246 259 self._testPickle(NAMES) 247 260 261 def testModules(self): 262 self._testPickle(MODULES) 263 248 264 def testObjects(self): 249 265 self._testPickle(OBJECTS)
Note: See TracChangeset
for help on using the changeset viewer.
