Skip to content

Commit 405e2bf

Browse files
TTimozpostfacto
authored andcommitted
fix test_p2p on Windows
1 parent 538ae81 commit 405e2bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_p2p.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run( self ):
6262
# Wait for thread to shutdown. Nuke process if we don't exit in time
6363
def join( self, timeout ):
6464
threading.Thread.join( self, timeout )
65-
if self.isAlive():
65+
if self.is_alive():
6666
self.WriteLn( "Still running after %d seconds. Killing" % timeout )
6767
global g_failed
6868
g_failed = True
@@ -90,7 +90,7 @@ def StartClientInThread( role, local, remote ):
9090
]
9191

9292
env = dict( os.environ )
93-
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ):
93+
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ) and not os.path.exists( 'GameNetworkingSockets.dll' ):
9494
bindir = os.path.abspath('../../../bin')
9595
if not os.path.exists( bindir ):
9696
print( "Can't find steamnetworkingsockets.dll" )

0 commit comments

Comments
 (0)