mark new failing tests

This commit is contained in:
Jeong YunWon
2023-02-25 18:20:44 +09:00
parent 76e295f606
commit bc87fadc03

View File

@@ -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)
@@ -108,6 +110,8 @@ class ActiveExceptionTests(unittest.TestCase):
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)
@@ -121,6 +125,8 @@ class ActiveExceptionTests(unittest.TestCase):
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
@@ -1135,6 +1141,8 @@ class SysModuleTest(unittest.TestCase):
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)