Bump version to 0.9.1.
[python/dscho.git] / Lib / test / test_compile.py
blob8905864a91455eba973d863eac155e5fc6b413fc
1 from test_support import verbose, TestFailed
3 if verbose:
4 print 'Running test on duplicate arguments'
6 try:
7 exec('def f(a, a): pass')
8 raise TestFailed, "duplicate arguments"
9 except SyntaxError:
10 pass
12 try:
13 exec('def f(a = 0, a = 1): pass')
14 raise TestFailed, "duplicate keyword arguments"
15 except SyntaxError:
16 pass