From 930fbb0df684424f187042716bdee0fe50d455a7 Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Thu, 22 Apr 2021 14:18:23 -0400 Subject: [PATCH] Mark erroring tests --- Lib/test/test_sys_setprofile.py | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py index 21a09b519..d5e3206a5 100644 --- a/Lib/test/test_sys_setprofile.py +++ b/Lib/test/test_sys_setprofile.py @@ -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 = {}