Skip to content

Commit 7c32e31

Browse files
committed
Remove codeop test since it is not really worth it
1 parent 95ef74b commit 7c32e31

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Lib/test/test_codeop.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import warnings
77
from test.support import warnings_helper
88
from textwrap import dedent
9-
from unittest.mock import Mock
109

11-
from codeop import compile_command, _maybe_compile, PyCF_DONT_IMPLY_DEDENT
10+
from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT
1211

1312
class CodeopTests(unittest.TestCase):
1413

@@ -325,13 +324,6 @@ def foo(x,x):
325324
pass
326325
"""), "duplicate parameter 'x' in function definition")
327326

328-
def test_system_error_not_chained(self):
329-
system_error = SystemError("compiler bug")
330-
compiler = Mock(side_effect=[_IncompleteInputError("incomplete"), system_error])
331-
with self.assertRaises(SystemError) as cm:
332-
_maybe_compile(compiler, "x", "<input>", "single", flags=0)
333-
self.assertIs(cm.exception, system_error)
334-
self.assertTrue(cm.exception.__suppress_context__)
335327

336328

337329
if __name__ == "__main__":

0 commit comments

Comments
 (0)