jacobschaer / python-doipclient

Pure Python ISO 13400 Client
MIT License
151 stars 50 forks source link

Fix for #36: default SSL context instead of preconfigured SSL context is used #38

Closed sfaiss closed 1 year ago

sfaiss commented 1 year ago

Fix #36

@alexeckle: You're right, isinstance has to check directly against ssl.SSLContext. I didn't pay enough attention when writing the tests, so the previous version checked against the mocked version of the SSLContext (which is incorrect).

Both the implementation and the tests are fixed with this PR.