Lib.test.bugs.pr170.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
# This flexes PR#170 which is caused by a suspected JIT bug. Said bug for
# some reason breaks exception matching. There is now a workaround that seems
# to do the trick most of the time.
try:
int("foo")
except ValueError:
pass