Visitar URL original
Faulthandler by youknowone · Pull Request #6400 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
faulthandler
  • Loading branch information
youknowone committed Dec 11, 2025
commit f9f8427d9ec0be07235b997bedb3f1a7dfb7dd93
17 changes: 1 addition & 16 deletions Lib/test/test_faulthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,10 @@ def funcA():
self.assertEqual(trace, expected)
self.assertEqual(exitcode, 0)

# TODO: RUSTPYTHON, AssertionError: Lists differ
@unittest.expectedFailure
def test_dump_traceback(self):
self.check_dump_traceback()

# TODO: RUSTPYTHON
# TODO: RUSTPYTHON - binary file write needs different handling
@unittest.expectedFailure
def test_dump_traceback_file(self):
with temporary_filename() as filename:
Expand All @@ -543,8 +541,6 @@ def test_dump_traceback_fd(self):
with tempfile.TemporaryFile('wb+') as fp:
self.check_dump_traceback(fd=fp.fileno())

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_truncate(self):
maxlen = 500
func_name = 'x' * (maxlen + 50)
Expand Down Expand Up @@ -866,8 +862,6 @@ def check_stderr_none(self):
finally:
sys.stderr = stderr

# TODO: RUSTPYTHON, AssertionError: RuntimeError not raised
@unittest.expectedFailure
def test_stderr_None(self):
# Issue #21497: provide a helpful error if sys.stderr is None,
# instead of just an attribute error: "None has no attribute fileno".
Expand Down Expand Up @@ -898,8 +892,6 @@ def test_raise_exception(self):
3,
name)

# TODO: RUSTPYTHON, AttributeError: module 'msvcrt' has no attribute 'GetErrorMode'
@unittest.expectedFailure
@unittest.skipUnless(MS_WINDOWS, 'specific to Windows')
def test_ignore_exception(self):
for exc_code in (
Expand All @@ -916,8 +908,6 @@ def test_ignore_exception(self):
self.assertEqual(output, [])
self.assertEqual(exitcode, exc_code)

# TODO: RUSTPYTHON, AttributeError: module 'msvcrt' has no attribute 'GetErrorMode'
@unittest.expectedFailure
@unittest.skipUnless(MS_WINDOWS, 'specific to Windows')
def test_raise_nonfatal_exception(self):
# These exceptions are not strictly errors. Letting
Expand Down Expand Up @@ -946,8 +936,6 @@ def test_raise_nonfatal_exception(self):
self.assertIn(exitcode,
(exc, exc & ~0x10000000))

# TODO: RUSTPYTHON, AttributeError: module 'msvcrt' has no attribute 'GetErrorMode'
@unittest.expectedFailure
@unittest.skipUnless(MS_WINDOWS, 'specific to Windows')
def test_disable_windows_exc_handler(self):
code = dedent("""
Expand All @@ -961,8 +949,6 @@ def test_disable_windows_exc_handler(self):
self.assertEqual(output, [])
self.assertEqual(exitcode, 0xC0000005)

# TODO: RUSTPYTHON, AssertionError: Lists differ
@unittest.expectedFailure
def test_cancel_later_without_dump_traceback_later(self):
# bpo-37933: Calling cancel_dump_traceback_later()
# without dump_traceback_later() must not segfault.
Expand All @@ -974,7 +960,6 @@ def test_cancel_later_without_dump_traceback_later(self):
self.assertEqual(output, [])
self.assertEqual(exitcode, 0)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AttributeError: module 'msvcrt' has no attribute 'GetErrorMode'")
@threading_helper.requires_working_threading()
@unittest.skipUnless(support.Py_GIL_DISABLED, "only meaningful if the GIL is disabled")
def test_free_threaded_dump_traceback(self):
Expand Down
Loading