Skip to content

Commit 0c6a19c

Browse files
committed
temp hack
1 parent 7f8b052 commit 0c6a19c

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

tests/test_ssl.py

+19-9
Original file line numberDiff line numberDiff line change
@@ -4253,17 +4253,27 @@ def verify_cookie(ssl, cookie):
42534253
s_sock.connect(c_sock.getsockname())
42544254

42554255
def s_handler():
4256-
s.DTLSv1_listen()
4257-
s.do_handshake()
4258-
s.write(b"hello")
4259-
assert s.read(100) == b"goodbye"
4260-
return "ok"
4256+
try:
4257+
s.DTLSv1_listen()
4258+
s.do_handshake()
4259+
s.write(b"hello")
4260+
assert s.read(100) == b"goodbye"
4261+
return "ok"
4262+
except BaseException:
4263+
import traceback
4264+
traceback.print_exc()
4265+
raise
42614266

42624267
def c_handler():
4263-
c.do_handshake()
4264-
assert c.read(100) == b"hello"
4265-
c.write(b"goodbye")
4266-
return "ok"
4268+
try:
4269+
c.do_handshake()
4270+
assert c.read(100) == b"hello"
4271+
c.write(b"goodbye")
4272+
return "ok"
4273+
except BaseException:
4274+
import traceback
4275+
traceback.print_exc()
4276+
raise
42674277

42684278
with ThreadPoolExecutor(max_workers=2) as executor:
42694279
s_fut = executor.submit(s_handler)

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ setenv =
2020
commands =
2121
openssl version
2222
coverage run --parallel -m OpenSSL.debug
23-
coverage run --parallel -m pytest -v {posargs}
23+
coverage run --parallel -m pytest -v -s -k TestDTLS {posargs}
2424

2525
[testenv:py37-twistedTrunk]
2626
deps =

0 commit comments

Comments
 (0)