File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,9 @@ def test_Py2_StringIO_module(self):
286
286
after = """
287
287
import io
288
288
s = io.StringIO('my string')
289
- assert isinstance(s, io.InputType)
289
+ # assert isinstance(s, io.InputType)
290
+ # There is no io.InputType in Python 3. What should we change this to
291
+ # instead?
290
292
"""
291
293
self .convert_check (before , after )
292
294
@@ -319,6 +321,7 @@ def f(a, b):
319
321
return a + b
320
322
321
323
args = (1, 2)
324
+ assert f(*args) == 3
322
325
assert f(*('a', 'b')) == 'ab'
323
326
'''
324
327
self .convert_check (before , after , stages = [1 ])
Original file line number Diff line number Diff line change 6
6
# projects that are happy to drop support for Py2.5 and below. Applying
7
7
# them first will reduce the size of the patch set for the real porting.
8
8
lib2to3_fix_names_stage1 = set ([
9
+ 'lib2to3.fixes.fix_apply' ,
9
10
'lib2to3.fixes.fix_except' ,
10
11
'lib2to3.fixes.fix_execfile' ,
11
12
'lib2to3.fixes.fix_exitfunc' ,
37
38
38
39
# The following fixers add a dependency on the ``future`` package:
39
40
lib2to3_fix_names_stage2 = set ([
40
- 'lib2to3.fixes.fix_apply' ,
41
41
'lib2to3.fixes.fix_basestring' ,
42
42
# 'lib2to3.fixes.fix_buffer', # perhaps not safe. Test this.
43
43
# 'lib2to3.fixes.fix_callable', # not needed in Py3.2+
You can’t perform that action at this time.
0 commit comments