From d1387eddc5542b7c876af2533125a007a5383e89 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Wed, 11 Oct 2023 16:01:18 +0200 Subject: [PATCH] unskip tests which are now passing --- Lib/test/test_pdb.py | 8 ++++---- Lib/test/test_sys_setprofile.py | 2 -- Lib/test/test_unittest/testmock/testmock.py | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 0c1059d18993a7..0cf2d3a863cfbb 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1973,7 +1973,7 @@ def test_pdb_next_command_subiterator(): ... 'next', ... 'next', ... 'continue']): - ... test_function() # doctest: +SKIP + ... test_function() > (3)test_function() -> for i in test_gen(): (Pdb) step @@ -2077,7 +2077,7 @@ def test_pdb_issue_20766(): >>> reset_Breakpoint() >>> with PdbTestInput(['continue', ... 'continue']): - ... test_function() # doctest: +SKIP + ... test_function() > (6)test_function() -> print('pdb %d: %s' % (i, sess._previous_sigint_handler)) (Pdb) continue @@ -2142,7 +2142,7 @@ def test_pdb_issue_gh_91742(): ... 'jump 5', ... 'continue' ... ]): - ... test_function() # doctest: +SKIP + ... test_function() > (12)test_function() -> about() (Pdb) step @@ -2296,7 +2296,7 @@ def test_pdb_issue_gh_101517(): >>> with PdbTestInput([ # doctest: +NORMALIZE_WHITESPACE ... 'continue' ... ]): - ... test_function() # doctest: +SKIP + ... test_function() --Return-- > (None)test_function()->None -> Warning: lineno is None diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py index caf5c625509e5d..34c70d6c8de0c4 100644 --- a/Lib/test/test_sys_setprofile.py +++ b/Lib/test/test_sys_setprofile.py @@ -233,7 +233,6 @@ def j(p): (1, 'return', j_ident), ]) - @unittest.skip("fails with instr_ptr") def test_generator(self): def f(): for i in range(2): @@ -256,7 +255,6 @@ def g(p): (1, 'return', g_ident), ]) - @unittest.skip("fails with instr_ptr") def test_stop_iteration(self): def f(): for i in range(2): diff --git a/Lib/test/test_unittest/testmock/testmock.py b/Lib/test/test_unittest/testmock/testmock.py index 6311a6cd78ab05..d23eb87696f406 100644 --- a/Lib/test/test_unittest/testmock/testmock.py +++ b/Lib/test/test_unittest/testmock/testmock.py @@ -2217,7 +2217,6 @@ def foo(a, b): pass self.assertIn('mock.child', repr(parent.child.mock)) - @unittest.skip("fails with instr_ptr") def test_isinstance_under_settrace(self): # bpo-36593 : __class__ is not set for a class that has __class__ # property defined when it's used with sys.settrace(trace) set.