We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6839a commit 50b3603Copy full SHA for 50b3603
Lib/test/test_embed.py
@@ -465,8 +465,12 @@ def test_getargs_reset_static_parser(self):
465
# Test _PyArg_Parser initializations via _PyArg_UnpackKeywords()
466
# https://github.com/python/cpython/issues/122334
467
code = textwrap.dedent("""
468
- import _ssl
469
- _ssl.txt2obj(txt='1.3')
+ try:
+ import _ssl
470
+ except ModuleNotFoundError:
471
+ _ssl = None
472
+ if _ssl is not None:
473
+ _ssl.txt2obj(txt='1.3')
474
print('1')
475
476
import _queue
0 commit comments