Commit graph

85 commits

Author SHA1 Message Date
Joel Nothman
0431a766f4 read_array/map_header functionality 2012-09-25 01:19:07 +10:00
INADA Naoki
477d3b152f Fix warnings. 2012-09-24 03:08:13 +09:00
INADA Naoki
e381032641 Support object_pairs_hook
Merge remote-tracking branch 'jnothman/object_pairs_hook' into 0.2-maint
Conflicts:
	msgpack/_msgpack.pyx
	test/test_pack.py
	test/test_sequnpack.py
2012-09-24 03:05:39 +09:00
INADA Naoki
c280e58988 Fix warnings in tests. 2012-09-24 02:39:02 +09:00
INADA Naoki
d503788e95 Warn when use_list is not specified.
Conflicts:
	test/test_sequnpack.py
2012-09-24 02:38:54 +09:00
Joel Nothman
e7c51d9089 Cleaner read_bytes and a test case
No longer reads via buffer for unbuffered bytes
2012-09-23 20:46:49 +10:00
Joel Nothman
77942514db Implement object_pairs_hook 2012-09-23 19:37:28 +10:00
INADA Naoki
48d693c1b9 Add test for .skip() 2012-09-23 10:09:51 +09:00
INADA Naoki
4d643894a1 Support packing subclass of dict. 2012-09-23 02:13:32 +09:00
INADA Naoki
51335bbee4 packb supports use_single_float option. 2012-09-21 14:15:30 +09:00
INADA Naoki
e5462ff72f Add test for max_buffer_size. 2012-07-20 02:02:37 +09:00
INADA Naoki
2122b46b84 Fix using deprecated api in tests. 2012-07-04 14:58:36 +09:00
INADA Naoki
636f4529aa Fix tests to pass. 2012-06-19 14:20:56 +09:00
INADA Naoki
0b38e86534 unify tests for py2 and py3 2012-06-19 13:55:14 +09:00
INADA Naoki
f1dd03fe80 Add test for subtype. 2012-06-19 13:39:32 +09:00
INADA Naoki
60762747b9 Fix error in tests. 2011-08-22 01:57:23 +09:00
tailhook
8c3c8a250b Fixed encoding argument for unpacker in Python 2011-08-22 01:52:45 +09:00
inada-n
ff594d71dd (python) make test pass with Python 2.5 2011-06-01 18:30:43 +09:00
tailhook
752e3d1b78 Implemented encoding for strings
* Packer by default uses `utf-8` encoding by default
* Unpacker uses `None` by default, so no decoding is done
* Both pack and unpack has `encoding` and `unicode_errors` arguments,
  if `encoding` is `None` no encoding/decoding is done, otherwise
  it is python codec. `unicode_errors` is supplied as `errors`
  parameter to codec
2011-04-15 18:39:17 +03:00
INADA Naoki
3aaf5f5a7a python: Fix segmentation fault when default returns it's argument. 2011-01-29 23:22:41 +09:00
INADA Naoki
5dbf2f5ef7 python: Add test for issue29. 2011-01-09 23:29:18 +09:00
INADA Naoki
9c61ce2c6c python: Don't use `from __future__ import unicode_literals`.
Python 2.5 or older doesn't support it.
2011-01-09 23:13:35 +09:00
INADA Naoki
a09c85ff9c python: Support old buffer protocol when unpack. (experimental) 2010-11-03 03:11:00 +09:00
INADA Naoki
3903979a84 python: Add test for unpacking buffer object. 2010-11-02 14:09:50 +09:00
INADA Naoki
3d8978417a Add list_hook option to unpacker. 2010-10-26 02:09:52 +09:00
INADA Naoki
0076d42a0d Add check for recursion limit and default hook result. 2010-10-26 01:49:00 +09:00
INADA Naoki
fa157082ac Add object_hook option to unpack and default option to pack.
(see simplejson for how to use).
2010-10-26 01:26:06 +09:00
INADA Naoki
367f15c247 Add unicode testcase for Python2. 2010-10-07 03:07:52 +09:00
Keiji Muraishi
a50a83f073 should raise TypeError on find unsupported value 2010-03-31 17:29:07 +09:00
Naoki INADA
472f5be977 Fix tests. 2009-12-17 17:58:41 +09:00
Naoki INADA
6201e623e2 Fix tests. 2009-06-29 11:21:28 +09:00
Naoki INADA
f46498bcdf Fix error on packing unsigned long long. 2009-06-29 10:09:04 +09:00
Naoki INADA
ca0bda01f1 Add some test cases. 2009-06-29 09:31:43 +09:00
Naoki INADA
9105c3513b Update test_format. 2009-06-29 08:23:27 +09:00
Naoki INADA
04d8fc114b Rename test files. 2009-06-27 12:04:11 +09:00