Skip to content

Commit 5407327

Browse files
authored
Add None check
1 parent c4ea58a commit 5407327

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_embed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ def test_getargs_reset_static_parser(self):
469469
import _ssl
470470
except ModuleNotFoundError:
471471
_ssl = None
472-
_ssl.txt2obj(txt='1.3')
472+
if _ssl is not None:
473+
_ssl.txt2obj(txt='1.3')
473474
print('1')
474475
475476
import _queue

0 commit comments

Comments
 (0)