Philip Jenvey <pjen...@users.sourceforge.net> added the comment: This looks like it was against Jython 2.2? Jython 2.5 passes 2.5's test_optparse with only fixing __builtins__ and disabling the weakref test
So uses of __builtins__ should should be importing __builtin__ and use that instead. sys.platform.startswith('java') should be test_support.is_jython instead. And on 2.6/3.2 you can now decorate test_refleak with @test_support.impl_check('Relies on sys.getrefcount', cpython=True) to skip it ---------- nosy: +pjenvey _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1704474> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com