mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Mark erroring tests
This commit is contained in:
1 file changed
+44
@@ -100,6 +100,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
def new_watcher(self):
|
||||
return HookWatcher()
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_simple(self):
|
||||
def f(p):
|
||||
pass
|
||||
@@ -108,6 +110,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_exception(self):
|
||||
def f(p):
|
||||
1/0
|
||||
@@ -116,6 +120,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_caught_exception(self):
|
||||
def f(p):
|
||||
try: 1/0
|
||||
@@ -125,6 +131,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_caught_nested_exception(self):
|
||||
def f(p):
|
||||
try: 1/0
|
||||
@@ -134,6 +142,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_nested_exception(self):
|
||||
def f(p):
|
||||
1/0
|
||||
@@ -145,6 +155,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_exception_in_except_clause(self):
|
||||
def f(p):
|
||||
1/0
|
||||
@@ -164,6 +176,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', g_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_exception_propagation(self):
|
||||
def f(p):
|
||||
1/0
|
||||
@@ -179,6 +193,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', g_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_raise_twice(self):
|
||||
def f(p):
|
||||
try: 1/0
|
||||
@@ -188,6 +204,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_raise_reraise(self):
|
||||
def f(p):
|
||||
try: 1/0
|
||||
@@ -197,6 +215,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_raise(self):
|
||||
def f(p):
|
||||
raise Exception()
|
||||
@@ -205,6 +225,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_distant_exception(self):
|
||||
def f():
|
||||
1/0
|
||||
@@ -233,6 +255,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', j_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_generator(self):
|
||||
def f():
|
||||
for i in range(2):
|
||||
@@ -255,6 +279,8 @@ class ProfileHookTestCase(TestCaseBase):
|
||||
(1, 'return', g_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_stop_iteration(self):
|
||||
def f():
|
||||
for i in range(2):
|
||||
@@ -281,6 +307,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
def new_watcher(self):
|
||||
return ProfileSimulator(self)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_simple(self):
|
||||
def f(p):
|
||||
pass
|
||||
@@ -289,6 +317,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_basic_exception(self):
|
||||
def f(p):
|
||||
1/0
|
||||
@@ -297,6 +327,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_caught_exception(self):
|
||||
def f(p):
|
||||
try: 1/0
|
||||
@@ -306,6 +338,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
(1, 'return', f_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_distant_exception(self):
|
||||
def f():
|
||||
1/0
|
||||
@@ -334,6 +368,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
(1, 'return', j_ident),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# bpo-34125: profiling method_descriptor with **kwargs
|
||||
def test_unbound_method(self):
|
||||
kwargs = {}
|
||||
@@ -343,6 +379,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
self.check_events(f, [(1, 'call', f_ident),
|
||||
(1, 'return', f_ident)])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# Test an invalid call (bpo-34126)
|
||||
def test_unbound_method_no_args(self):
|
||||
def f(p):
|
||||
@@ -351,6 +389,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
self.check_events(f, [(1, 'call', f_ident),
|
||||
(1, 'return', f_ident)])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# Test an invalid call (bpo-34126)
|
||||
def test_unbound_method_invalid_args(self):
|
||||
def f(p):
|
||||
@@ -359,6 +399,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
self.check_events(f, [(1, 'call', f_ident),
|
||||
(1, 'return', f_ident)])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# Test an invalid call (bpo-34125)
|
||||
def test_unbound_method_no_keyword_args(self):
|
||||
kwargs = {}
|
||||
@@ -368,6 +410,8 @@ class ProfileSimulatorTestCase(TestCaseBase):
|
||||
self.check_events(f, [(1, 'call', f_ident),
|
||||
(1, 'return', f_ident)])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# Test an invalid call (bpo-34125)
|
||||
def test_unbound_method_invalid_keyword_args(self):
|
||||
kwargs = {}
|
||||
|
||||
Reference in new issue
Block a user