1# test passing a string object as the key for a keyword argument
2
3try:
4    exec
5except NameError:
6    print("SKIP")
7    raise SystemExit
8
9# they key in this dict is a string object and is not interned
10args = {'thisisaverylongargumentname': 123}
11
12# when this string is executed it will intern the keyword argument
13exec("def foo(*,thisisaverylongargumentname=1):\n print(thisisaverylongargumentname)")
14
15# test default arg
16foo()
17
18# the string from the dict should match the interned keyword argument
19foo(**args)
20