Bas Westerbaan
c5d621853d
test_sequnpack: python3 literals
2015-01-26 20:55:23 +01:00
Bas Westerbaan
83404945c0
Add test for issue #124
2015-01-26 20:31:03 +01:00
INADA Naoki
75ce78dd15
Add max_<type>_len option to unpacker. ( fixes #97 ).
...
Fix build error on 32bit environment (fixes #102 ).
2015-01-25 01:41:21 +09:00
Ken Dreyer
f40fdf523a
tests: add pytest 2.3 compatibility
...
Adjust the skipif conditional to use the older pytest 2.3 syntax.
(This allows the tests to pass with the system pytest package on RHEL
7.0, since RHEL 7.0 ships pytest 2.3.5.)
2015-01-23 12:27:58 -07:00
INADA Naoki
d6c773dc4d
Fix build and tests.
2014-08-31 02:29:05 +09:00
INADA Naoki
3a9dc1d7ea
Merge pull request #94 from msgpack/strict-input-check
...
Add tests for limits.
2014-03-26 15:37:29 +09:00
INADA Naoki
a72e75d7c8
Fix PyPy fail.
2014-03-26 15:12:28 +09:00
INADA Naoki
5fb9d8a7fd
Fix Python 3.2
2014-03-26 13:32:28 +09:00
INADA Naoki
7d0e145e91
Allow ValueError for packing integer overs format limit.
2014-03-26 12:50:28 +09:00
INADA Naoki
e99331d1ab
Fix skipif marking.
2014-03-26 11:01:44 +09:00
INADA Naoki
e7f87d9d41
More limit check.
2014-03-26 03:00:47 +09:00
INADA Naoki
6c0c306f96
Add tests for limits.
2014-03-26 02:49:03 +09:00
Alexey Popravka
ee38505db5
fixed super() for python2
2014-03-24 15:42:16 +02:00
Alexey Popravka
d850e56dd0
Unpacker's ext_hook fixed + tests
2014-03-24 15:31:06 +02:00
INADA Naoki
c567cf478b
Remove unused import.
2014-02-17 09:54:55 +09:00
INADA Naoki
eb3537ab50
Merge branch 'pr/82'
2014-02-17 04:07:16 +09:00
INADA Naoki
518f886b11
fix
2014-02-17 04:06:58 +09:00
INADA Naoki
0c22e775c9
Remove six completely.
2014-02-15 22:36:52 +09:00
INADA Naoki
63eab502df
Remove six.b()
2014-02-15 22:20:57 +09:00
INADA Naoki
dee2d87d41
six.BytesIO => io.BytesIO
2014-02-15 22:16:01 +09:00
INADA Naoki
213f7888c3
Remove too strict type check from test.
2014-02-14 09:26:46 +09:00
INADA Naoki
cf63f19211
Fix test
2014-02-13 09:57:51 +09:00
INADA Naoki
0cab6092e4
Add refcount check.
2014-02-13 09:55:17 +09:00
INADA Naoki
38cf835c95
Rename
2014-02-13 09:40:12 +09:00
Sergey Zhuravlev
11a3b1561a
fixed support of python3
2014-02-12 23:09:23 +04:00
INADA Naoki
9d61f24387
Feed data from file before _unpack()
2014-02-13 03:10:51 +09:00
Wouter Bolsterlee
77046b839d
Always raise TypeError for wrong argument types
...
The code that checks whether hooks are callable() (and some other type
checks) should always raise TypeError on failure. Before this change,
both ValueError and TypeError were used in an inconsistent way (C
extension and Python implementation were not the same).
2014-02-11 20:42:58 +01:00
Sergey Zhuravlev
48ca2d700d
Added support of bytearrays to msgpack/fallback.py
2013-12-15 16:22:39 +00:00
INADA Naoki
37c2ad63af
Add tests and bugfix.
2013-10-21 00:29:05 +09:00
INADA Naoki
0d5c58bd51
cleanup
2013-10-20 23:06:02 +09:00
INADA Naoki
822cce823c
Support unpacking new types.
2013-10-20 22:59:27 +09:00
INADA Naoki
96bcd76f49
Packing ExtType and some cleanup
2013-10-20 20:28:32 +09:00
INADA Naoki
aa68c9b833
fallback: Support pack_ext_type.
2013-10-20 15:40:20 +09:00
INADA Naoki
27f0cba8a5
Merge branch 'master' of https://github.com/antocuni/msgpack-python into newspec
...
Conflicts:
msgpack/fallback.py
msgpack/unpack.h
msgpack/unpack_define.h
msgpack/unpack_template.h
2013-10-20 15:08:31 +09:00
Antonio Cuni
56dd1650a4
implement unpacking for all the fixtext formats
2013-10-19 17:27:16 +02:00
Antonio Cuni
985d4c1496
add a test for unpacking extended types
2013-10-19 11:34:28 +02:00
Antonio Cuni
ff858387d3
implement unpack_one also for the cython version, and add a test for it
2013-10-19 01:49:03 +02:00
Antonio Cuni
5467515065
implement Packer.pack_extended_type also in the cython version of the code
2013-10-18 17:33:54 +02:00
Antonio Cuni
c727440ba5
automatically find the best format to encode extended types
2013-10-18 15:45:50 +02:00
Antonio Cuni
522c4bfc79
slightly change to API
2013-10-18 15:03:58 +02:00
Antonio Cuni
5529dfe596
kill some duplicate code from unpack/unpackb and move the logic to Unpacker.unpack_one. By doing this we no longer need to make the module-level pack/unpack parametric on the class, because they contain no logic at all
2013-10-18 14:38:52 +02:00
INADA Naoki
f162bf6f79
Add tests for str8 and bin types.
2013-10-17 09:37:20 +09:00
Antonio Cuni
d61097511a
add support for extended types: you can now pack/unpack custom python objects by subclassing Packer and Unpacker
2013-10-15 16:59:43 +02:00
YAMAMOTO Takashi
e250b89920
more tests
2013-06-03 13:54:00 +09:00
INADA Naoki
a6859791a2
Revert "Skip reserved byte"
...
This reverts commit ff3342aeed
.
2013-02-23 18:01:43 +09:00
INADA Naoki
5c51203d14
Revert "Fix test for Python 3."
...
This reverts commit 43dd224d52
.
2013-02-23 18:00:54 +09:00
INADA Naoki
43dd224d52
Fix test for Python 3.
2013-02-21 16:04:58 +09:00
INADA Naoki
ff3342aeed
Skip reserved byte
2013-02-21 16:02:33 +09:00
INADA Naoki
22920baae6
Fix minor bugs and tuning unpacking dict.
2013-02-03 00:20:00 +09:00
Bas Westerbaan
b9e9199eea
fallback: python3 bugfix for new testcase of d2f549a4
...
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-29 03:03:13 +01:00