Fix test failure in Jython.