@@ -82,8 +82,6 @@ def trivial_signal_handler(self, *args):
8282 def create_handler_with_partial (self , argument ):
8383 return functools .partial (self .trivial_signal_handler , argument )
8484
85- # TODO: RUSTPYTHON
86- @unittest .expectedFailure
8785 def test_out_of_range_signal_number_raises_error (self ):
8886 self .assertRaises (ValueError , signal .getsignal , 4242 )
8987
@@ -126,8 +124,6 @@ def __repr__(self):
126124 self .assertEqual (signal .getsignal (signal .SIGHUP ), hup )
127125 self .assertEqual (0 , argument .repr_count )
128126
129- # TODO: RUSTPYTHON
130- @unittest .expectedFailure
131127 def test_strsignal (self ):
132128 self .assertIn ("Interrupt" , signal .strsignal (signal .SIGINT ))
133129 self .assertIn ("Terminated" , signal .strsignal (signal .SIGTERM ))
@@ -141,8 +137,6 @@ def test_interprocess_signal(self):
141137 script = os .path .join (dirname , 'signalinterproctester.py' )
142138 assert_python_ok (script )
143139
144- # TODO: RUSTPYTHON
145- @unittest .expectedFailure
146140 @unittest .skipUnless (
147141 hasattr (signal , "valid_signals" ),
148142 "requires signal.valid_signals"
@@ -249,13 +243,11 @@ def test_invalid_call(self):
249243 with self .assertRaises (TypeError ):
250244 signal .set_wakeup_fd (signal .SIGINT , False )
251245
252- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
253246 def test_invalid_fd (self ):
254247 fd = os_helper .make_bad_fd ()
255248 self .assertRaises ((ValueError , OSError ),
256249 signal .set_wakeup_fd , fd )
257250
258- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
259251 @unittest .skipUnless (support .has_socket_support , "needs working sockets." )
260252 def test_invalid_socket (self ):
261253 sock = socket .socket ()
@@ -264,7 +256,6 @@ def test_invalid_socket(self):
264256 self .assertRaises ((ValueError , OSError ),
265257 signal .set_wakeup_fd , fd )
266258
267- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
268259 # Emscripten does not support fstat on pipes yet.
269260 # https://github.com/emscripten-core/emscripten/issues/16414
270261 @unittest .skipIf (support .is_emscripten , "Emscripten cannot fstat pipes." )
@@ -286,7 +277,6 @@ def test_set_wakeup_fd_result(self):
286277 self .assertEqual (signal .set_wakeup_fd (- 1 ), w2 )
287278 self .assertEqual (signal .set_wakeup_fd (- 1 ), - 1 )
288279
289- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
290280 @unittest .skipIf (support .is_emscripten , "Emscripten cannot fstat pipes." )
291281 @unittest .skipUnless (support .has_socket_support , "needs working sockets." )
292282 def test_set_wakeup_fd_socket_result (self ):
0 commit comments