@@ -57,7 +57,7 @@ def testCallNamedPipe(self):
57
57
)
58
58
self .assertEqual (got , b"bar\0 foo" )
59
59
event .wait (5 )
60
- self .assertTrue (event .isSet (), "Pipe server thread didn't terminate" )
60
+ self .assertTrue (event .is_set (), "Pipe server thread didn't terminate" )
61
61
62
62
def testTransactNamedPipeBlocking (self ):
63
63
event = threading .Event ()
@@ -82,7 +82,7 @@ def testTransactNamedPipeBlocking(self):
82
82
hr , got = win32pipe .TransactNamedPipe (hpipe , b"foo\0 bar" , 1024 , None )
83
83
self .assertEqual (got , b"bar\0 foo" )
84
84
event .wait (5 )
85
- self .assertTrue (event .isSet (), "Pipe server thread didn't terminate" )
85
+ self .assertTrue (event .is_set (), "Pipe server thread didn't terminate" )
86
86
87
87
def testTransactNamedPipeBlockingBuffer (self ):
88
88
# Like testTransactNamedPipeBlocking, but a pre-allocated buffer is
@@ -110,7 +110,7 @@ def testTransactNamedPipeBlockingBuffer(self):
110
110
hr , got = win32pipe .TransactNamedPipe (hpipe , b"foo\0 bar" , buffer , None )
111
111
self .assertEqual (got , b"bar\0 foo" )
112
112
event .wait (5 )
113
- self .assertTrue (event .isSet (), "Pipe server thread didn't terminate" )
113
+ self .assertTrue (event .is_set (), "Pipe server thread didn't terminate" )
114
114
115
115
def testTransactNamedPipeAsync (self ):
116
116
event = threading .Event ()
@@ -141,7 +141,7 @@ def testTransactNamedPipeAsync(self):
141
141
got = buffer [:nbytes ]
142
142
self .assertEqual (got , b"bar\0 foo" )
143
143
event .wait (5 )
144
- self .assertTrue (event .isSet (), "Pipe server thread didn't terminate" )
144
+ self .assertTrue (event .is_set (), "Pipe server thread didn't terminate" )
145
145
146
146
147
147
if __name__ == "__main__" :
0 commit comments