[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-06 Thread Brett Cannon
Brett Cannon added the comment: Going to close this and open a separate feature request to better control what module is imported first. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-06 Thread Thomas Wouters
Thomas Wouters added the comment: For what it's worth, the need for a bootstrap-module has also come up within Google, where we have... somewhat different requirements than most. In order to fix import paths in a way that works even when using "python -S", I had a need to patch the very firs

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-06 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Brett, yes, you are welcome to close this issue — Ned quite handily convinced me that coverage code belongs in the "coverage" distribution, not languishing about in the CPython source tree. That solution also quite beautifully solves the copyright probl

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-05 Thread Nick Coghlan
Nick Coghlan added the comment: Do we really want to enshrine shadowing the encodings module as the one true way to do this kind of thing? Although I guess defining a way to do it properly would be a fairly major undertaking, so perhaps blessing the encodings hack is the practical way forwar

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-05 Thread Brett Cannon
Brett Cannon added the comment: Brandon, can I go ahead and close this and consider the script you and Ned have in the coverage.py repo to be the canonical script to use? -- status: open -> pending ___ Python tracker

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-21 Thread Ned Batchelder
Ned Batchelder added the comment: The tip of the coverage.py repo (https://bitbucket.org/ned/coveragepy) has a new implementation of the encodings hack which seems to work well. Of course, an option to run a module before anything else in the interpreter would make the whole thing much simple

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Added Ned to the nosy list. For Python core, we should also keep in mind that we do have the option of adding a -X coverage option to avoid the need for the encodings module hack. -- nosy: +nedbat ___ Python tracker

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-02 Thread Éric Araujo
Éric Araujo added the comment: > I think your suggestions are all good ones, and I have incorporated > them into the file. Great :) You left some commented-out debugging prints. > (But do note that the departures we are now making from Ned's own > copy of the tracer code ­— removing the commen

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-02 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22622/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-01 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Éric, I think your suggestions are all good ones, and I have incorporated them into the file. (But do note that the departures we are now making from Ned's own copy of the tracer code ­— removing the commented-out debugging statement, and the long comme

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-07-11 Thread Brett Cannon
Brett Cannon added the comment: Which I have not forgotten about. Just waiting until I have the time to get to this. On Mon, Jul 11, 2011 at 08:50, Éric Araujo wrote: > > Éric Araujo added the comment: > > Thanks for your work on this. I made some minor comments on Rietveld (you > should

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-07-11 Thread Eric Snow
Changes by Eric Snow : -- nosy: +ericsnow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-07-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your work on this. I made some minor comments on Rietveld (you should get an email), waiting for the real import experts to comment on the meat of the patch. -- nosy: +eric.araujo ___ Python tracker

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-21 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-21 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon components: +Demos and Tools stage: -> patch review versions: +Python 3.3 ___ Python tracker ___

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Here is a module that solves this problem if the tests are run with the "fullcoverage" directory at the front of the PYTHONPATH, like this: PYTHONPATH=Tools/fullcoverage ./python -m coverage run --pylib Lib/test/regrtest.py test_copy -- keyword

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : When running the Python regression tests in "coverage", the initial outer level of interpreted code in several standard library modules shows as not having been covered by the tests, because they were imported during the Python boot process and were a