mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
mark new failing tests
This commit is contained in:
8
Lib/test/test_sys.py
vendored
8
Lib/test/test_sys.py
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user