office-gobmx/pyuno/qa/pytests/testssl.py
Chenxiong Qi 8b6e0dd9e4 tdf#158803 Fix issues detected by pyflakes
Change-Id: Iaa329dff61db894e7d5fecd840e785a53a48b26f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160889
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-12-27 13:48:47 +01:00

15 lines
355 B
Python

import os
import unittest
# I want to ensure that import ssl works on all platforms
class SSLTest(unittest.TestCase):
def test_ssl_import(self):
import ssl
# use imported ssl module for pyflakes
with open(os.devnull, "w") as devnull:
print(str(ssl), file=devnull)
if __name__ == '__main__':
unittest.main()