File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -102,20 +102,6 @@ def f(x, x): ...
102102SyntaxError: 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 ()
You can’t perform that action at this time.
0 commit comments