[ python-Bugs-1010952 ] running test_codecmaps_* takes too much effort

SourceForge.net noreply at sourceforge.net
Wed Oct 13 22:04:50 CEST 2004


Bugs item #1010952, was opened at 2004-08-17 21:13
Message generated for change (Comment added) made by lemburg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1010952&group_id=5470

Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Hye-Shik Chang (perky)
Summary: running test_codecmaps_* takes too much effort

Initial Comment:
The only way I've found to actually run the codecmap tests is by 
running it over and over again, downloading the missing files when 
a test complains in between, until the tests no longer complains.

E.g 
$ make test
- test_codecmap_jp complains about a missing file
- download this file
$ make test
- test_codecmap_jp complains about another missing filie
- ...

Another problem: it is completely unclear where I should place the 
downloaded files. I've worked around this by placing the files in 
Lib/test and patching test_multibytecodec_support to look for the 
files in os.path.dirname(__file__):

cvs diff: Diffing .
Index: test_multibytecodec_support.py
=========================================
==========================
RCS file: /cvsroot/python/python/dist/src/Lib/test/
test_multibytecodec_support.py,v
retrieving revision 1.5
diff -r1.5 test_multibytecodec_support.py
165a166
>         self.mapfilename = 
os.path.join(os.path.dirname(__file__), self.mapfilename)

It would be nice if there were a document that described what 
should be done to run these tests, adding the required files to CVS 
would be fine too :-)

----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2004-10-13 22:04

Message:
Logged In: YES 
user_id=38388

Just a suggestion:

Why don't we add a new resource option to the test scripts
and then have the tests download the files from the Internet
as necessary ?!


----------------------------------------------------------------------

Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2004-10-13 21:59

Message:
Logged In: YES 
user_id=469548

How about adding the files to nondist?

----------------------------------------------------------------------

Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-10-13 17:12

Message:
Logged In: YES 
user_id=29957

Could we at least get a single tarball/zip file of all of
the files? At the moment, it takes a serious amount of
effort to fetch all the files.



----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2004-08-20 09:26

Message:
Logged In: YES 
user_id=21627

Adding the files to the CVS is unacceptable, because they
would then end up in the distribution, and their size is
considered unacceptable for distribution (let alone
copyright issues with these files).

----------------------------------------------------------------------

Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2004-08-17 21:19

Message:
Logged In: YES 
user_id=580910

test_normalization suffers from a simular problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1010952&group_id=5470


More information about the Python-bugs-list mailing list