◐ Shell
clean mode source ↗

Fix enum and os.read related to signal by youknowone · Pull Request #6552 · RustPython/RustPython

Expand Up @@ -152,7 +152,6 @@ def _test_reading(self, data_to_write, read_and_verify_code): '"got data %r\\nexpected %r" % (got, expected))' )
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readline(self): """readline() must handle signals and not lose data.""" self._test_reading( Expand All @@ -161,7 +160,6 @@ def test_readline(self): read_method_name='readline', expected=b'hello, world!\n'))
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readlines(self): """readlines() must handle signals and not lose data.""" self._test_reading( Expand All @@ -170,7 +168,6 @@ def test_readlines(self): read_method_name='readlines', expected=[b'hello\n', b'world!\n']))
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readall(self): """readall() must handle signals and not lose data.""" self._test_reading( Expand All @@ -189,6 +186,19 @@ def test_readall(self): class CTestFileIOSignalInterrupt(TestFileIOSignalInterrupt, unittest.TestCase): modname = '_io'
# TODO: RUSTPYTHON - _io module uses _pyio internally, signal handling differs @unittest.expectedFailure def test_readline(self): super().test_readline()
@unittest.expectedFailure def test_readlines(self): super().test_readlines()
@unittest.expectedFailure def test_readall(self): super().test_readall()
class PyTestFileIOSignalInterrupt(TestFileIOSignalInterrupt, unittest.TestCase): modname = '_pyio'
Expand All @@ -200,7 +210,6 @@ def _generate_infile_setup_code(self): 'assert isinstance(infile, io.BufferedReader)' % self.modname)
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readall(self): """BufferedReader.read() must handle signals and not lose data.""" self._test_reading( Expand All @@ -212,6 +221,19 @@ def test_readall(self): class CTestBufferedIOSignalInterrupt(TestBufferedIOSignalInterrupt, unittest.TestCase): modname = '_io'
# TODO: RUSTPYTHON - _io module uses _pyio internally, signal handling differs @unittest.expectedFailure def test_readline(self): super().test_readline()
@unittest.expectedFailure def test_readlines(self): super().test_readlines()
@unittest.expectedFailure def test_readall(self): super().test_readall()
class PyTestBufferedIOSignalInterrupt(TestBufferedIOSignalInterrupt, unittest.TestCase): modname = '_pyio'
Expand All @@ -224,7 +246,6 @@ def _generate_infile_setup_code(self): 'assert isinstance(infile, io.TextIOWrapper)' % self.modname)
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readline(self): """readline() must handle signals and not lose data.""" self._test_reading( Expand All @@ -233,7 +254,6 @@ def test_readline(self): read_method_name='readline', expected='hello, world!\n'))
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readlines(self): """readlines() must handle signals and not lose data.""" self._test_reading( Expand All @@ -242,7 +262,6 @@ def test_readlines(self): read_method_name='readlines', expected=['hello\n', 'world!\n']))
@unittest.expectedFailure # TODO: RUSTPYTHON def test_readall(self): """read() must handle signals and not lose data.""" self._test_reading( Expand All @@ -254,6 +273,19 @@ def test_readall(self): class CTestTextIOSignalInterrupt(TestTextIOSignalInterrupt, unittest.TestCase): modname = '_io'
# TODO: RUSTPYTHON - _io module uses _pyio internally, signal handling differs @unittest.expectedFailure def test_readline(self): super().test_readline()
@unittest.expectedFailure def test_readlines(self): super().test_readlines()
@unittest.expectedFailure def test_readall(self): super().test_readall()
class PyTestTextIOSignalInterrupt(TestTextIOSignalInterrupt, unittest.TestCase): modname = '_pyio'
Expand Down