[Patches] [ python-Patches-446907 ] Allow jython to complete test_import

noreply@sourceforge.net noreply@sourceforge.net
Wed, 01 Aug 2001 12:40:11 -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: Closed
>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: 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