[issue25260] python -m test --coverage doesn't work on Windows

2017-05-11 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg293482 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue25260] python -m test --coverage doesn't work on Windows

2017-05-11 Thread STINNER Victor
STINNER Victor added the comment: -@unittest.skipUnless(sysconfig.is_python_build(), - 'test.bat script is not installed') I had to remove this decorator from test_tools_buildbot_test() since sysconfig.is_python_build() is false on Python 2.7 built with VS 2008 my W

[issue25260] python -m test --coverage doesn't work on Windows

2017-05-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset a5bb62436e25614276ac4b8e252a87f3fcc946cd by Victor Stinner in branch '2.7': [2.7] bpo-30283: regrtest: backport test_slow_interrupted() and test_coverage() (#1541) https://github.com/python/cpython/commit/a5bb62436e25614276ac4b8e252a87f3fcc946cd

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed the issue by removing the list of ignored directories. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f10e0b3e76d by Victor Stinner in branch 'default': Fix regrtest --coverage on Windows https://hg.python.org/cpython/rev/0f10e0b3e76d -- nosy: +python-dev ___ Python tracker

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: Attached patch simply removes the list of ignored directories. It fixes test_regrtest.test_coverage() on Windows. -- keywords: +patch nosy: +barry, georg.brandl, vinay.sajip Added file: http://bugs.python.org/file40620/regrtest_coverage.patch _

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-28 Thread STINNER Victor
STINNER Victor added the comment: Ooops, copy/paste failure. The right diff is: Changeset 294f8aeb4d4b: "Implemented PEP 405 (Python virtual environments)." -tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix, +tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-28 Thread STINNER Victor
STINNER Victor added the comment: Changes on ignoredirs: Changeset 294f8aeb4d4b: "Implemented PEP 405 (Python virtual environments)." -tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix, libpath], - trace=0, count=1) +tracer = trace.Trace(ig

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-28 Thread Ned Batchelder
Ned Batchelder added the comment: What version of coverage.py is this? -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list ma

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-28 Thread STINNER Victor
STINNER Victor added the comment: I added a new test for "-m test --coverage" in test_regrtest, but I skipped the test on Windows. -- ___ Python tracker ___

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-28 Thread STINNER Victor
New submission from STINNER Victor: "python -m test --coverage" doesn't work on Windows because the tracer ignores the root directory of Python source code. The code works on Linux because sys.base_prefix and sys.base_exec_prefix don't point to the Python source code, but to /usr/local. I'm n