File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Lib/test/test_future_stmt Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -107,26 +107,6 @@ def test_ensure_flags_dont_clash(self):
107107 }
108108 self .assertCountEqual (set (flags .values ()), flags .values ())
109109
110- def test_parserhack (self ):
111- # test that the parser.c::future_hack function works as expected
112- # Note: although this test must pass, it's not testing the original
113- # bug as of 2.6 since the with statement is not optional and
114- # the parser hack disabled. If a new keyword is introduced in
115- # 2.6, change this to refer to the new future import.
116- try :
117- exec ("from __future__ import print_function; print 0" )
118- except SyntaxError :
119- pass
120- else :
121- self .fail ("syntax error didn't occur" )
122-
123- try :
124- exec ("from __future__ import (print_function); print 0" )
125- except SyntaxError :
126- pass
127- else :
128- self .fail ("syntax error didn't occur" )
129-
130110 def test_unicode_literals_exec (self ):
131111 scope = {}
132112 exec ("from __future__ import unicode_literals; x = ''" , {}, scope )
You can’t perform that action at this time.
0 commit comments