Lib.test.bugs.pr235.py Maven / Gradle / Ivy
# PR#235, Jython crashes (i.e. uncaught Java exception) under strange
# (illegal) input.
bogus = '''\
def f(x, z, x):
pass
f(y=1)
'''
try:
compile(bogus, '', 'exec')
except SyntaxError:
pass
© 2015 - 2025 Weber Informatics LLC | Privacy Policy