[Python-checkins] CVS: python/dist/src/Lib/test test_import.py,1.4,1.5

Tim Peters tim_one@users.sourceforge.net
Wed, 01 Aug 2001 12:38:58 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv28319/python/dist/src/Lib/test

Modified Files:
	test_import.py 
Log Message:
Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).


Index: test_import.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_import.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_import.py	2001/05/08 15:19:57	1.4
--- test_import.py	2001/08/01 19:38:56	1.5
***************
*** 20,25 ****
  
  source = TESTFN + ".py"
- pyc = TESTFN + ".pyc"
  pyo = TESTFN + ".pyo"
  
  f = open(source, "w")
--- 20,28 ----
  
  source = TESTFN + ".py"
  pyo = TESTFN + ".pyo"
+ if sys.platform.endswith('java'):
+     pyc = TESTFN + "$py.class"
+ else:
+     pyc = TESTFN + ".pyc"
  
  f = open(source, "w")