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

2011-09-06 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org 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

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

2011-09-06 Thread Thomas Wouters
Thomas Wouters tho...@python.org 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

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

2011-09-05 Thread Brett Cannon
Brett Cannon br...@python.org 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-09-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-08-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-08-21 Thread Ned Batchelder
Ned Batchelder n...@nedbatchelder.com 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

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

2011-08-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___

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

2011-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22622/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___

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

2011-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 ­—

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

2011-08-01 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org 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

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

2011-07-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 ___

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

2011-07-11 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___ Python-bugs-list

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

2011-07-11 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: Thanks for your work on this. I

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

2011-03-22 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___ Python-bugs-list

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

2011-03-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon components: +Demos and Tools stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561

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

2011-03-15 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: 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

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

2011-03-15 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org 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

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

2011-03-15 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___