Skip to content
Merged
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
mark new failing tests
  • Loading branch information
youknowone committed Feb 25, 2023
commit bc87fadc03c7b3b45378e248e1ff92f8a5d084ca
8 changes: 8 additions & 0 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class ActiveExceptionTests(unittest.TestCase):
def test_exc_info_no_exception(self):
self.assertEqual(sys.exc_info(), (None, None, None))

# TODO: RUSTPYTHON; AttributeError: module 'sys' has no attribute 'exception'
@unittest.expectedFailure
def test_sys_exception_no_exception(self):
self.assertEqual(sys.exception(), None)

Expand Down Expand Up @@ -108,6 +110,8 @@ def f():
self.assertIs(exc_info[1], e)
self.assertIs(exc_info[2], e.__traceback__)

# TODO: RUSTPYTHON; AttributeError: module 'sys' has no attribute 'exception'
@unittest.expectedFailure
def test_sys_exception_with_exception_instance(self):
def f():
raise ValueError(42)
Expand All @@ -121,6 +125,8 @@ def f():
self.assertIsInstance(e, ValueError)
self.assertIs(exc, e)

# TODO: RUSTPYTHON; AttributeError: module 'sys' has no attribute 'exception'
@unittest.expectedFailure
def test_sys_exception_with_exception_type(self):
def f():
raise ValueError
Expand Down Expand Up @@ -1135,6 +1141,8 @@ def test_module_names(self):
for name in sys.stdlib_module_names:
self.assertIsInstance(name, str)

# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute '_stdlib_dir'
@unittest.expectedFailure
def test_stdlib_dir(self):
os = import_helper.import_fresh_module('os')
marker = getattr(os, '__file__', None)
Expand Down