summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-04-12 11:12:36 (GMT)
committerGitHub <noreply@github.com>2021-04-12 11:12:36 (GMT)
commit95bbb331ecb3ef5d05859d90b287cc3d27613c86 (patch)
treee34682d708083b4c2f4bbae5e20f55835a711d8e /Lib/test/test_asyncio
parent3447750073aff229b049e4ccd6217db2811dcfd1 (diff)
downloadcpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.zip
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.gz
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.bz2
bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
index aa39779..a075358 100644
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -799,7 +799,7 @@ os.close(fd)
# Start the server thread and wait for it to be listening.
thread = threading.Thread(target=server)
- thread.setDaemon(True)
+ thread.daemon = True
thread.start()
addr = q.get()