|
From: David H. <dt...@gm...> - 2005-08-29 09:14:26
|
On 8/29/05, FAN <sha...@gm...> wrote: > hi, all > I have used Jython 2.1 to run the unit test comming with Python > release version 2.1, only half test case passed. > I think this does mean something if we say Jython is a java version of Py= thon. >=20 The standard library is not part of the language, so to be honest I don't see that it means anything. > Here is the result: >=20 >=20 > OS: windows xp sp2 > JVM: > java version "1.4.2_01" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06) > Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode) >=20 > Jython: > Jython 2.1 on java1.4.2_01 (JIT: null) >=20 >=20 > Brief result are: >=20 > Python 2.1: > 117 tests OK. > 1 test failed: test_popen > 23 tests skipped: test_al test_cd test_cl test_crypt test_dbm test_dl > test_fcntl test_fork1 test_gdbm test_gl test_grp test_imgfile > test_largefile test_linuxaudiodev test_nis test_openpty test_poll > test_pty test_pwd test_signal test_socketserver test_sunaudiodev > test_timing >=20 >=20 > Jython 2.1: >=20 > 66 tests OK. > 21 tests failed: test_grammar test_operations test_exceptions > test_charmapcodec test_class test_compare test_cookie test_extcall > test_import test_largefile test_longexp test_mailbox test_mutants > test_profile test_sax test_sre test_traceback test_unicodedata > test_userlist test_weakref test_zlib > 54 tests skipped: test_al test_array test_asynchat test_audioop > test_bastion test_bsddb test_capi test_cd test_cl test_cmath > test_crypt test_dbm test_dl test_errno test_fcntl test_fork1 test_gc > test_gdbm test_gettext test_gl test_grp test_httplib test_imageop > test_imgfile test_inspect test_linuxaudiodev test_locale test_minidom > test_mmap test_nis test_openpty test_parser test_poll test_popen > test_popen2 test_pty test_pwd test_pyexpat test_regex test_rgbimg > test_rotor test_scope test_select test_signal test_socketserver > test_strop test_sunaudiodev test_sundry test_symtable test_timing > test_ucn test_wave test_winreg test_winsound >=20 A great number of the modules whose tests are failing are written in C, or depend upon another module written in C, so they have no business being tested by Jython. -Dave > Detail result are in the attachment txt, or you can test it on your compu= ter. >=20 >=20 > |