mirror of
https://github.com/python/cpython.git
synced 2026-05-30 14:20:52 +00:00
gh-141510: Change marshal version to 6 (#145551)
Fix SliceTestCase: test also that version 4 fails with ValueError.
This commit is contained in:
parent
c3fb0d9d96
commit
4fce98a920
6 changed files with 29 additions and 5 deletions
|
|
@ -580,6 +580,12 @@ w_complex_object(PyObject *v, char flag, WFILE *p)
|
|||
Py_ssize_t pos;
|
||||
PyObject *key, *value;
|
||||
if (PyFrozenDict_CheckExact(v)) {
|
||||
if (p->version < 6) {
|
||||
w_byte(TYPE_UNKNOWN, p);
|
||||
p->error = WFERR_UNMARSHALLABLE;
|
||||
return;
|
||||
}
|
||||
|
||||
W_TYPE(TYPE_FROZENDICT, p);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue