We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3695211 commit a337668Copy full SHA for a337668
1 file changed
tests/extmod/deflate_decompress.py
@@ -6,6 +6,17 @@
6
print("SKIP")
7
raise SystemExit
8
9
+try:
10
+ # Check there's enough memory to deflate gzip streams.
11
+ # zlib.compress(b'', wbits=25)
12
+ empty_gzip = (
13
+ b"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00"
14
+ )
15
+ deflate.DeflateIO(io.BytesIO(empty_gzip)).read()
16
+except MemoryError:
17
+ print("SKIP")
18
+ raise SystemExit
19
+
20
# zlib.compress(b'micropython hello world hello world micropython', wbits=-9)
21
data_raw = b'\xcb\xcdL.\xca/\xa8,\xc9\xc8\xcfS\xc8H\xcd\xc9\xc9W(\xcf/\xcaIAa\xe7"\xd4\x00\x00'
22
# zlib.compress(b'micropython hello world hello world micropython', wbits=9)
0 commit comments