Skip to content

Commit d0049a3

Browse files
authored
Update test_interact.py
1 parent 9127c6c commit d0049a3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Lib/test/test_pyrepl/test_interact.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,6 @@ def f(x, x): ...
102102
SyntaxError: duplicate argument 'x' in function definition"""
103103
self.assertIn(r, f.getvalue())
104104

105-
@force_not_colorized
106-
def test_check_barry_as_FLUFL_show_syntax_error(self):
107-
console = InteractiveColoredConsole()
108-
source = "1 <> 2"
109-
f = io.StringIO()
110-
with contextlib.redirect_stderr(f):
111-
result = console.runsource(source)
112-
self.assertFalse(result)
113-
r = """
114-
1 <> 2
115-
^^
116-
SyntaxError: invalid syntax"""
117-
self.assertIn(r, f.getvalue())
118-
119105
def test_runsource_shows_syntax_error_for_failed_compilation(self):
120106
console = InteractiveColoredConsole()
121107
source = "print('Hello, world!'"
@@ -240,5 +226,3 @@ def test_incomplete_statement(self):
240226
code = "if foo:"
241227
console = InteractiveColoredConsole(namespace, filename="<stdin>")
242228
self.assertTrue(_more_lines(console, code))
243-
244-
unittest.main()

0 commit comments

Comments
 (0)