Staging
v0.5.1
https://github.com/python/cpython
Revision 4cd6f2ab807e0f3a23a059a407a08c5edad6bb98 authored by Greg Ward on 14 October 2000, 03:56:42 UTC, committed by Greg Ward on 14 October 2000, 03:56:42 UTC
1 parent 0b4dafc
Raw File
Tip revision: 4cd6f2ab807e0f3a23a059a407a08c5edad6bb98 authored by Greg Ward on 14 October 2000, 03:56:42 UTC
Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
Tip revision: 4cd6f2a
test_compile.py
from test_support import verbose, TestFailed

if verbose:
    print 'Running test on duplicate arguments'

try:
    exec('def f(a, a): pass')
    raise TestFailed, "duplicate arguments"
except SyntaxError:
    pass

try:
    exec('def f(a = 0, a = 1): pass')
    raise TestFailed, "duplicate keyword arguments"
except SyntaxError:
    pass
back to top