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 @@ -171,26 +171,6 @@ def test_ensure_flags_dont_clash(self):
171
171
}
172
172
self .assertCountEqual (set (flags .values ()), flags .values ())
173
173
174
- def test_parserhack (self ):
175
- # test that the parser.c::future_hack function works as expected
176
- # Note: although this test must pass, it's not testing the original
177
- # bug as of 2.6 since the with statement is not optional and
178
- # the parser hack disabled. If a new keyword is introduced in
179
- # 2.6, change this to refer to the new future import.
180
- try :
181
- exec ("from __future__ import print_function; print 0" )
182
- except SyntaxError :
183
- pass
184
- else :
185
- self .fail ("syntax error didn't occur" )
186
-
187
- try :
188
- exec ("from __future__ import (print_function); print 0" )
189
- except SyntaxError :
190
- pass
191
- else :
192
- self .fail ("syntax error didn't occur" )
193
-
194
174
def test_unicode_literals_exec (self ):
195
175
scope = {}
196
176
exec ("from __future__ import unicode_literals; x = ''" , {}, scope )
You can’t perform that action at this time.
0 commit comments