From e8cf0af3c1b4a2cc541d1fbef07faf6dab7e3559 Mon Sep 17 00:00:00 2001 From: Narendra-Neerukonda Date: Sat, 19 Jun 2021 14:45:57 +0530 Subject: threading related deprecation fixes for python 3.10 --- tests/test_transport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_transport.py') diff --git a/tests/test_transport.py b/tests/test_transport.py index 77ffd6c1..737ef705 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -756,7 +756,7 @@ class TransportTest(unittest.TestCase): threading.Thread.__init__( self, None, None, self.__class__.__name__ ) - self.setDaemon(True) + self.daemon = True self.chan = chan self.iterations = iterations self.done_event = done_event @@ -780,7 +780,7 @@ class TransportTest(unittest.TestCase): threading.Thread.__init__( self, None, None, self.__class__.__name__ ) - self.setDaemon(True) + self.daemon = True self.chan = chan self.done_event = done_event self.watchdog_event = threading.Event() -- cgit v1.2.3