@@ -32,7 +32,6 @@ def assertRaisesTermiosError(self, err, callable, *args):
3232 callable (* args )
3333 self .assertIn (cm .exception .args [0 ], errs )
3434
35- @unittest .expectedFailure # TODO: RUSTPYTHON; TypeError: Expected type 'int' but 'FileIO' found.
3635 def test_tcgetattr (self ):
3736 attrs = termios .tcgetattr (self .fd )
3837 self .assertIsInstance (attrs , list )
@@ -51,23 +50,20 @@ def test_tcgetattr(self):
5150 self .assertEqual (len (x ), 1 )
5251 self .assertEqual (termios .tcgetattr (self .stream ), attrs )
5352
54- @unittest .skip ("TODO: RUSTPYTHON segfault" )
5553 def test_tcgetattr_errors (self ):
5654 self .assertRaisesTermiosError (errno .ENOTTY , termios .tcgetattr , self .bad_fd )
5755 self .assertRaises (ValueError , termios .tcgetattr , - 1 )
5856 self .assertRaises (OverflowError , termios .tcgetattr , 2 ** 1000 )
5957 self .assertRaises (TypeError , termios .tcgetattr , object ())
6058 self .assertRaises (TypeError , termios .tcgetattr )
6159
62- @unittest .expectedFailure # TODO: RUSTPYTHON; TypeError: Expected type 'int' but 'FileIO' found.
6360 def test_tcsetattr (self ):
6461 attrs = termios .tcgetattr (self .fd )
6562 termios .tcsetattr (self .fd , termios .TCSANOW , attrs )
6663 termios .tcsetattr (self .fd , termios .TCSADRAIN , attrs )
6764 termios .tcsetattr (self .fd , termios .TCSAFLUSH , attrs )
6865 termios .tcsetattr (self .stream , termios .TCSANOW , attrs )
6966
70- @unittest .skip ("TODO: RUSTPYTHON segfault" )
7167 def test_tcsetattr_errors (self ):
7268 attrs = termios .tcgetattr (self .fd )
7369 self .assertRaises (TypeError , termios .tcsetattr , self .fd , termios .TCSANOW , tuple (attrs ))
@@ -103,7 +99,6 @@ def test_tcsetattr_errors(self):
10399 self .assertRaises (TypeError , termios .tcsetattr , object (), termios .TCSANOW , attrs )
104100 self .assertRaises (TypeError , termios .tcsetattr , self .fd , termios .TCSANOW )
105101
106- @unittest .expectedFailure # TODO: RUSTPYTHON; TypeError: Expected type 'int' but 'FileIO' found.
107102 @support .skip_android_selinux ('tcsendbreak' )
108103 def test_tcsendbreak (self ):
109104 try :
@@ -115,7 +110,6 @@ def test_tcsendbreak(self):
115110 raise
116111 termios .tcsendbreak (self .stream , 1 )
117112
118- @unittest .skip ("TODO: RUSTPYTHON segfault" )
119113 @support .skip_android_selinux ('tcsendbreak' )
120114 def test_tcsendbreak_errors (self ):
121115 self .assertRaises (OverflowError , termios .tcsendbreak , self .fd , 2 ** 1000 )
@@ -127,13 +121,11 @@ def test_tcsendbreak_errors(self):
127121 self .assertRaises (TypeError , termios .tcsendbreak , object (), 0 )
128122 self .assertRaises (TypeError , termios .tcsendbreak , self .fd )
129123
130- @unittest .expectedFailure # TODO: RUSTPYTHON; TypeError: Expected type 'int' but 'FileIO' found.
131124 @support .skip_android_selinux ('tcdrain' )
132125 def test_tcdrain (self ):
133126 termios .tcdrain (self .fd )
134127 termios .tcdrain (self .stream )
135128
136- @unittest .skip ("TODO: RUSTPYTHON segfault" )
137129 @support .skip_android_selinux ('tcdrain' )
138130 def test_tcdrain_errors (self ):
139131 self .assertRaisesTermiosError (errno .ENOTTY , termios .tcdrain , self .bad_fd )
@@ -147,7 +139,6 @@ def test_tcflush(self):
147139 termios .tcflush (self .fd , termios .TCOFLUSH )
148140 termios .tcflush (self .fd , termios .TCIOFLUSH )
149141
150- @unittest .skip ("TODO: RUSTPYTHON segfault" )
151142 def test_tcflush_errors (self ):
152143 self .assertRaisesTermiosError (errno .EINVAL , termios .tcflush , self .fd , - 1 )
153144 self .assertRaises (OverflowError , termios .tcflush , self .fd , 2 ** 1000 )
@@ -190,7 +181,6 @@ def test_tcflow(self):
190181 termios .tcflow (self .fd , termios .TCIOFF )
191182 termios .tcflow (self .fd , termios .TCION )
192183
193- @unittest .skip ("TODO: RUSTPYTHON segfault" )
194184 @support .skip_android_selinux ('tcflow' )
195185 def test_tcflow_errors (self ):
196186 self .assertRaisesTermiosError (errno .EINVAL , termios .tcflow , self .fd , - 1 )
0 commit comments