-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process path aliases in run #1027
Draft
graingert
wants to merge
3
commits into
nedbat:master
Choose a base branch
from
graingert:process-path-aliases-in-run
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+62
−23
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[coverage:run]
source=.
[coverage:paths]
.
.tox/*/lib/*/site-packages/** should be able to get coverage to cover any file in |
graingert
force-pushed
the
process-path-aliases-in-run
branch
2 times, most recently
from
September 1, 2020 22:43
dfd952b
to
5506bc0
Compare
graingert
force-pushed
the
process-path-aliases-in-run
branch
from
September 1, 2020 22:45
5506bc0
to
1062d3c
Compare
``` ================================== FAILURES =================================== ________________ UnicodeFilePathsTest.test_accented_directory _________________ [gw1] win32 -- Python 2.7.17 C:\projects\coveragepy\.tox\py27\Scripts\python.EXE args = (<tests.test_process.UnicodeFilePathsTest testMethod=test_accented_directory>,) kwargs = {} @functools.wraps(method) def _wrapper(*args, **kwargs): try: > result = method(*args, **kwargs) tests\coveragetest.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests\test_process.py:1320: in test_accented_directory self.assertEqual(out, "accented\n") E AssertionError: 'Traceback (most recent call last):\n File "C:\\projects\\coveragepy\\.tox\\py2 [truncated]... != 'accented\n' E + accented E - Traceback (most recent call last): E - File "C:\projects\coveragepy\.tox\py27\Scripts\coverage-script.py", line 11, in <module> E - load_entry_point('coverage', 'console_scripts', 'coverage')() E - File "c:\projects\coveragepy\coverage\cmdline.py", line 865, in main E - status = CoverageScript().command_line(argv) E - File "c:\projects\coveragepy\coverage\cmdline.py", line 582, in command_line E - return self.do_run(options, args) E - File "c:\projects\coveragepy\coverage\cmdline.py", line 737, in do_run E - self.coverage.start() E - File "c:\projects\coveragepy\coverage\control.py", line 524, in start E - self._init() E - File "c:\projects\coveragepy\coverage\control.py", line 253, in _init E - self._debug = DebugControl(self.config.debug, self._debug_file) E - File "c:\projects\coveragepy\coverage\debug.py", line 36, in __init__ E - def __init__(self, options, output): E - File "c:\projects\coveragepy\coverage\pytracer.py", line 135, in _trace E - disp = self.should_trace(filename, frame) E - File "c:\projects\coveragepy\coverage\control.py", line 315, in _should_trace E - disp = self._inorout.should_trace(filename, frame) E - File "c:\projects\coveragepy\coverage\inorout.py", line 309, in should_trace E - reason = self.check_include_omit_etc(disp.source_filename, frame) E - File "c:\projects\coveragepy\coverage\inorout.py", line 339, in check_include_omit_etc E - if self.source_match.match(filename): E - File "c:\projects\coveragepy\coverage\files.py", line 232, in match E - fpath = self.aliases.map(fpath) E - File "c:\projects\coveragepy\coverage\files.py", line 413, in map E - new = canonical_filename(new) E - File "<decorator-gen-2>", line 2, in canonical_filename E - File "C:\projects\coveragepy\.tox\py27\lib\site-packages\contracts\main.py", line 270, in contracts_checker E - result = function_(*args, **kwargs) E - File "c:\projects\coveragepy\coverage\files.py", line 67, in canonical_filename E - f = os.path.join(path, filename) E - File "c:\python27\lib\ntpath.py", line 85, in join E - result_path = result_path + p_path E - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 124: ordinal not in range(128) E - Coverage.py warning: Trace function changed, measurement is likely wrong: None (trace-changed) ---------------------------- Captured stdout call ----------------------------- Traceback (most recent call last): File "C:\projects\coveragepy\.tox\py27\Scripts\coverage-script.py", line 11, in <module> load_entry_point('coverage', 'console_scripts', 'coverage')() File "c:\projects\coveragepy\coverage\cmdline.py", line 865, in main status = CoverageScript().command_line(argv) File "c:\projects\coveragepy\coverage\cmdline.py", line 582, in command_line return self.do_run(options, args) File "c:\projects\coveragepy\coverage\cmdline.py", line 737, in do_run self.coverage.start() File "c:\projects\coveragepy\coverage\control.py", line 524, in start self._init() File "c:\projects\coveragepy\coverage\control.py", line 253, in _init self._debug = DebugControl(self.config.debug, self._debug_file) File "c:\projects\coveragepy\coverage\debug.py", line 36, in __init__ def __init__(self, options, output): File "c:\projects\coveragepy\coverage\pytracer.py", line 135, in _trace disp = self.should_trace(filename, frame) File "c:\projects\coveragepy\coverage\control.py", line 315, in _should_trace disp = self._inorout.should_trace(filename, frame) File "c:\projects\coveragepy\coverage\inorout.py", line 309, in should_trace reason = self.check_include_omit_etc(disp.source_filename, frame) File "c:\projects\coveragepy\coverage\inorout.py", line 339, in check_include_omit_etc if self.source_match.match(filename): File "c:\projects\coveragepy\coverage\files.py", line 232, in match fpath = self.aliases.map(fpath) File "c:\projects\coveragepy\coverage\files.py", line 413, in map new = canonical_filename(new) File "<decorator-gen-2>", line 2, in canonical_filename File "C:\projects\coveragepy\.tox\py27\lib\site-packages\contracts\main.py", line 270, in contracts_checker result = function_(*args, **kwargs) File "c:\projects\coveragepy\coverage\files.py", line 67, in canonical_filename f = os.path.join(path, filename) File "c:\python27\lib\ntpath.py", line 85, in join result_path = result_path + p_path UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 124: ordinal not in range(128) Coverage.py warning: Trace function changed, measurement is likely wrong: None (trace-changed) =========================== short test summary info =========================== ```
nedbat
force-pushed
the
master
branch
2 times, most recently
from
June 2, 2022 12:11
0c14f1a
to
82169a6
Compare
is this draft still valid? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.