fix a test failure on Jython