From 405e2bfc759d239024c07852d570bcf248ca5e57 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Sun, 29 Sep 2024 15:55:53 -0500 Subject: [PATCH] fix test_p2p on Windows --- tests/test_p2p.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_p2p.py b/tests/test_p2p.py index 0850d901..aa1e35b8 100755 --- a/tests/test_p2p.py +++ b/tests/test_p2p.py @@ -62,7 +62,7 @@ def run( self ): # Wait for thread to shutdown. Nuke process if we don't exit in time def join( self, timeout ): threading.Thread.join( self, timeout ) - if self.isAlive(): + if self.is_alive(): self.WriteLn( "Still running after %d seconds. Killing" % timeout ) global g_failed g_failed = True @@ -90,7 +90,7 @@ def StartClientInThread( role, local, remote ): ] env = dict( os.environ ) - if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ): + if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ) and not os.path.exists( 'GameNetworkingSockets.dll' ): bindir = os.path.abspath('../../../bin') if not os.path.exists( bindir ): print( "Can't find steamnetworkingsockets.dll" )