Skip to content

Commit

Permalink
temp hack
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Oct 30, 2021
1 parent 7f8b052 commit 0c6a19c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions tests/test_ssl.py
Expand Up @@ -4253,17 +4253,27 @@ def verify_cookie(ssl, cookie):
s_sock.connect(c_sock.getsockname())

def s_handler():
s.DTLSv1_listen()
s.do_handshake()
s.write(b"hello")
assert s.read(100) == b"goodbye"
return "ok"
try:
s.DTLSv1_listen()
s.do_handshake()
s.write(b"hello")
assert s.read(100) == b"goodbye"
return "ok"
except BaseException:
import traceback
traceback.print_exc()
raise

def c_handler():
c.do_handshake()
assert c.read(100) == b"hello"
c.write(b"goodbye")
return "ok"
try:
c.do_handshake()
assert c.read(100) == b"hello"
c.write(b"goodbye")
return "ok"
except BaseException:
import traceback
traceback.print_exc()
raise

with ThreadPoolExecutor(max_workers=2) as executor:
s_fut = executor.submit(s_handler)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -20,7 +20,7 @@ setenv =
commands =
openssl version
coverage run --parallel -m OpenSSL.debug
coverage run --parallel -m pytest -v {posargs}
coverage run --parallel -m pytest -v -s -k TestDTLS {posargs}

[testenv:py37-twistedTrunk]
deps =
Expand Down

0 comments on commit 0c6a19c

Please sign in to comment.