Skip to content

Commit

Permalink
Fix github actions for python3 tests
Browse files Browse the repository at this point in the history
Add a dummy test in test_sslsocket.py to workaround an issue in Python
3.12.
  • Loading branch information
fishy committed Jan 3, 2024
1 parent 5cf71b2 commit be1c8fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/py/test/test_sslsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@ def test_ssl_context(self):
self._assert_connection_success(server, ssl_context=client_context)


# Add a dummy test because starting from python 3.12, if all tests in a test
# file are skipped that's considered an error.
class DummyTest(unittest.TestCase):
def test_dummy(self):
self.assertEqual(0, 0)


if __name__ == '__main__':
logging.basicConfig(level=logging.WARN)
from thrift.transport.TSSLSocket import TSSLSocket, TSSLServerSocket, _match_has_ipaddress
Expand Down

0 comments on commit be1c8fd

Please sign in to comment.