You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Add another 3.8 try/finally rule and semantic action
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Self-checking test.
|
||||
# String interpolation tests
|
||||
|
||||
# RUNNABLE!
|
||||
var1 = 'x'
|
||||
var2 = 'y'
|
||||
abc = 'def'
|
||||
|
@@ -1,6 +1,7 @@
|
||||
# Bug in 3.6 was not taking "else" branch after compond "if"
|
||||
# In earlier versions we had else detection needed here.
|
||||
|
||||
# RUNNABLE!
|
||||
def f(a, b, c):
|
||||
if a and b:
|
||||
x = 1
|
||||
|
@@ -4,6 +4,7 @@
|
||||
# showparams(c, test="A", **extra_args)
|
||||
# below
|
||||
|
||||
# RUNNABLE!
|
||||
def showparams(c, test, **extra_args):
|
||||
return {'c': c, **extra_args, 'test': test}
|
||||
|
||||
@@ -44,4 +45,3 @@ d = (2, 3)
|
||||
assert f(2, **a) == {'c': 2, 'param1': 2, 'test': 'A'}
|
||||
assert f3(2, *c, **a) == {'c': 2, 'param1': 2, 'test': 2}
|
||||
assert f3(*d, **a) == {'c': 2, 'param1': 2, 'test': 3}
|
||||
|
||||
|
Reference in New Issue
Block a user