Add another 3.8 try/finally rule and semantic action

This commit is contained in:
rocky
2019-12-10 22:28:16 -05:00
parent 9b2e22cbaf
commit fb3761e4f3
5 changed files with 26 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
# Self-checking test.
# String interpolation tests
# RUNNABLE!
var1 = 'x'
var2 = 'y'
abc = 'def'

View File

@@ -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

View File

@@ -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}