[Patches] [ python-Patches-446907 ] Allow jython to complete test_import
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 01 Aug 2001 13:18:42 -0700
Patches item #446907, was opened at 2001-08-01 12:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=446907&group_id=5470
Category: library
Group: None
>Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Finn Bock (bckfnn)
Assigned to: Tim Peters (tim_one)
Summary: Allow jython to complete test_import
Initial Comment:
Adds cleanup of the jython .class files after this
test.
----------------------------------------------------------------------
>Comment By: Finn Bock (bckfnn)
Date: 2001-08-01 13:18
Message:
Logged In: YES
user_id=4201
Jython also have startswith() and I think that is what you
wanted to use in this case.
Jython 2.1a3 on java1.4.0-beta (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import sys
>>> sys.platform
'java1.4.0-beta'
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-08-01 12:40
Message:
Logged In: YES
user_id=31435
Checked in, but changed the code to
if sys.platform.endswith('java'):
. pyc = TESTFN + "$py.class"
else:
. pyc = TESTFN + ".pyc"
for clarity. Please don't tell me that Jython doesn't
implement .endswith() -- that would be too ironic to bear
<wink>.
Lib/test/test_import.py; new revision: 1.5
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-08-01 12:34
Message:
Logged In: YES
user_id=31435
Assigned to me.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=446907&group_id=5470