Source

pypy / pypy / module / marshal / test / test_marshal.py

Author Commit Message Labels Comments Date
Amaury Forgeot d'Arc
Delicate update for marshal bad data, to better match CPython.
Branches
py3k
Philip Jenvey
merge default
Branches
py3k
Alex Gaynor
Remove rope support from std objspace
Amaury Forgeot d'Arc
s/maxint/maxsize
Branches
py3k
Amaury Forgeot d'Arc
hg merge default. Phew.
Branches
py3k
Amaury Forgeot d'Arc
progress
Branches
less-gettestobjspace
Philip Jenvey
merge default
Branches
py3k
Amaury Forgeot d'Arc
Issue1285: Python2 allows lone surrogates, also in string literals which appear in marshalled code. Also use more direct code for functions that are often used.
Antonio Cuni
skip rope marshal tests: ropes are broken in py3k
Branches
py3k
Antonio Cuni
use bytes, not str with marshal.loads
Branches
py3k
Benjamin Peterson
merge default
Branches
py3k
Amaury Forgeot d'Arc
Improve a bit the error message given by marshal.loads.
Antonio Cuni
fix syntax
Branches
py3k
Antonio Cuni
remove a u'', s/unichr/chr/, kill 'long'
Branches
py3k
Antonio Cuni
test bytes literals instead of unicode, and make sure to write bytes to a file opened with 'wb'
Branches
py3k
Antonio Cuni
s/func_code/__code__
Branches
py3k
Antonio Cuni
we need a BytesIO for marshal. Also, fix syntax about longs
Branches
py3k
Antonio Cuni
(antocuni, romain) make this test at least runnable by using a py3k compatible syntax. Tons of failures, of course
Branches
py3k
Armin Rigo
Fix for smalllong: make more systematically sure that the created long objects are W_SmallLongs if possible, by using systematically newlong() instead of directly W_LongObject().
Alex Gaynor
Fix marshal tests.
Benjamin Peterson
remove sys import
Branches
fast-forward
Benjamin Peterson
reject subclasses of builtins being marshalled
Branches
fast-forward
Carl Friedrich Bolz
killing spree: remove dictobject.py (useless) and listmultiobject.py (useless and buggy).
Armin Rigo
A performance hack for interp-level code that manipulates app-level file objects. It gives direct access to the underlying stream, shortcutting calls that need to go through app-level (which performs various checks and locking). For marshal, for example, a single lock/unlock pair around the whole operation is enough.
Armin Rigo
(pedronis, arigo) Fixes for marshal on 64-bit platforms. Silent a warning on 32-bit platforms with Python 2.3.
Christian Tismer
changed marshal in several ways: - removed direct import of string_to_float - added buffer support - fixed int64 - added more tests passes test_marshal now.
holger krekel
make the trunk translateable again + FIXEOL - marshal and _sre are now switched off by default and also don't get translated. You can use --usemodules=_sre or --usemodules=marshal or --usemodules=marshal,_sre for usage on pypy/cpython - don't import marshal multimethod in the objspace/std/model.py. We need to investigate what causes the 5 MM-related RTyper errors if you include it. - added some more comments and clarificati…
Christian Tismer
Hey, marshal is here! I added an interp-level marshal module. It is also enabled to do the basic marshalling and loading of .pyc files. This implementation is fairly fast. There is some performance to be gathered in the presence of files. Buffering has not been taken, yet. Hint: PyPy marshal does not use file descriptors, but file-like objects. For optimization, look for a seek method and redirect to the string marsha…