Add missing import
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=93
This commit is contained in:
parent
f21150c420
commit
895080bf5f
@ -5,15 +5,22 @@ Subject: [PATCH] bpo-37596: Make `set` and `frozenset` marshalling
|
|||||||
deterministic (GH-27926)
|
deterministic (GH-27926)
|
||||||
|
|
||||||
---
|
---
|
||||||
Lib/test/test_marshal.py | 25 +++++++
|
Lib/test/test_marshal.py | 26 ++++++++
|
||||||
Misc/NEWS.d/next/Library/2021-08-23-21-39-59.bpo-37596.ojRcwB.rst | 2
|
Misc/NEWS.d/next/Library/2021-08-23-21-39-59.bpo-37596.ojRcwB.rst | 2
|
||||||
Python/marshal.c | 32 ++++++++++
|
Python/marshal.c | 32 ++++++++++
|
||||||
3 files changed, 59 insertions(+)
|
3 files changed, 60 insertions(+)
|
||||||
create mode 100644 Misc/NEWS.d/next/Library/2021-08-23-21-39-59.bpo-37596.ojRcwB.rst
|
create mode 100644 Misc/NEWS.d/next/Library/2021-08-23-21-39-59.bpo-37596.ojRcwB.rst
|
||||||
|
|
||||||
--- a/Lib/test/test_marshal.py
|
--- a/Lib/test/test_marshal.py
|
||||||
+++ b/Lib/test/test_marshal.py
|
+++ b/Lib/test/test_marshal.py
|
||||||
@@ -318,6 +318,31 @@ class BugsTestCase(unittest.TestCase):
|
@@ -1,5 +1,6 @@
|
||||||
|
from test import support
|
||||||
|
from test.support import os_helper
|
||||||
|
+from test.support.script_helper import assert_python_ok
|
||||||
|
import array
|
||||||
|
import io
|
||||||
|
import marshal
|
||||||
|
@@ -318,6 +319,31 @@ class BugsTestCase(unittest.TestCase):
|
||||||
for i in range(len(data)):
|
for i in range(len(data)):
|
||||||
self.assertRaises(EOFError, marshal.loads, data[0: i])
|
self.assertRaises(EOFError, marshal.loads, data[0: i])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user