Debian Codegraph @

extra_tests/test_ssl.py

raw symbols SCIP
1 import pytest
2 import _ssl
3 import os
4
5
6 @pytest.mark.skipif(os.name != 'posix', reason="needs /dev/null")
7 def test_invalid_file():
8 # gh-5120: do not segfault
9 with pytest.raises(_ssl.SSLError):
10 cert = _ssl._test_decode_cert("/dev/null")