Migrate test_tuple_params to new test framework.
This test relies on some old syntax for tuples that may need to get cleaned up before the test can pass on both old and new Pythons.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
"""
|
||||
test_tuple_params.py -- source test pattern for formal parameters of type tuple
|
||||
|
||||
This source is part of the decompyle test suite.
|
||||
|
||||
decompyle is a Python byte-code decompiler
|
||||
See http://www.goebel-consult.de/decompyle/ for download and
|
||||
for further information
|
||||
"""
|
||||
|
||||
def A(a, b, (x, y, z), c):
|
||||
pass
|
||||
|
||||
def B(a, b = 42, (x, y, z) = (1, 2, 3), c = 17):
|
||||
pass
|
||||
|
||||
def C((x, y, z)):
|
||||
pass
|
||||
|
||||
def D((x,)):
|
||||
pass
|
||||
|
||||
def E((x)):
|
||||
pass
|
@@ -1,24 +0,0 @@
|
||||
"""
|
||||
test_tuple_params.py -- source test pattern for formal parameters of type tuple
|
||||
|
||||
This source is part of the decompyle test suite.
|
||||
|
||||
decompyle is a Python byte-code decompiler
|
||||
See http://www.goebel-consult.de/decompyle/ for download and
|
||||
for further information
|
||||
"""
|
||||
|
||||
def A(a, b, (x, y, z), c):
|
||||
pass
|
||||
|
||||
def B(a, b = 42, (x, y, z) = (1, 2, 3), c = 17):
|
||||
pass
|
||||
|
||||
def C((x, y, z)):
|
||||
pass
|
||||
|
||||
def D((x,)):
|
||||
pass
|
||||
|
||||
def E(x):
|
||||
pass
|
20
tests/tokenized/test_tuple_params.txt
Normal file
20
tests/tokenized/test_tuple_params.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
'\ntest_tuple_params.py -- source test pattern for formal parameters of type tuple\n\nThis source is part of the decompyle test suite.\n\ndecompyle is a Python byte-code decompiler\nSee http://www.goebel-consult.de/decompyle/ for download and\nfor further information\n' <EOL>
|
||||
def A ( a , b , ( x , y , z ) , c ) : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
||||
<OUTDENT>
|
||||
def B ( a , b = 42 , ( x , y , z ) = ( 1 , 2 , 3 ) , c = 17 ) : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
||||
<OUTDENT>
|
||||
def C ( ( x , y , z ) ) : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
||||
<OUTDENT>
|
||||
def D ( ( x , ) ) : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
||||
<OUTDENT>
|
||||
def E ( ( x , ) ) : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
Reference in New Issue
Block a user