Skip to content

Commit a6328ee

Browse files
test_zlib stuff
1 parent 309cc68 commit a6328ee

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Lib/test/test_zlib.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
import sys
99
from test.support import bigmemtest, _1G, _4G, is_s390x
1010

11+
zlib = import_helper.import_module('zlib', required_on=('linux', 'darwin', 'win32', 'cygwin'))
12+
13+
# Building CPython without zlib is not supported except WASI.
14+
#
15+
# Anyone who wants build CPython this way should be prepared to patch it,
16+
# but the core team may help getting those patches to the main branch
17+
# (as that’s the place where multiple third parties can cooperate).
18+
#
19+
# For tests to pass without zlib, this file needs to be removed.
1120

12-
zlib = import_helper.import_module('zlib')
1321

1422
requires_Compress_copy = unittest.skipUnless(
1523
hasattr(zlib.compressobj(), "copy"),

pyconfig.h.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,8 +1609,7 @@
16091609
/* Define to 1 if you have the 'writev' function. */
16101610
#undef HAVE_WRITEV
16111611

1612-
/* Define if the zlib library has inflateCopy; zlib 1.2.0 (2003) added
1613-
inflateCopy. */
1612+
/* Define if the zlib library has inflateCopy */
16141613
#undef HAVE_ZLIB_COPY
16151614

16161615
/* Define to 1 if you have the <zlib.h> header file. */

0 commit comments

Comments
 (0)