Output: final newline / "old line"
See original GitHub issueWith the following output there are some problems:
- what does
old line
mean? Should be removed or replaced with some more descriptive message (in verbose mode only?) - it is missing a final newline - as you can see since Zsh prints timing information in the same line
- it displays “1484 out of 133”, i.e. the count / total appears to be off. It would be good to see what it refers to (mutations? files?)
% mutmut --use-coverage --runner 'python -m pytest testing/test_collection.py' src/_pytest/nodes.py
Running tests without mutations... Done
Using coverage data from .coverage file
--- starting mutation ---
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " return self.fspath, None, \"\"⤑0"
…
old line
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " cache = self.config.__dict__.setdefault(\"_bestrelpathcache\", {})⤑0"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " fspath = cache[location[0]]⤑0"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " fspath = cache[location[0]]⤑1"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " fspath = self.session.fspath.bestrelpath(location[0])⤑0"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " fspath = self.session.fspath.bestrelpath(location[0])⤑1"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " cache[location[0]] = fspath⤑0"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " cache[location[0]] = fspath⤑1"
FAILED: mutmut src/_pytest/nodes.py --apply --mutation " location = (fspath, location[1], str(location[2]))⤑0"
1484 out of 133 (src/_pytest/nodes.py self._location = location⤑0) mutmut --use-coverage --runner 'python -m pytest testing/test_collection.py' 341.91s user 16.20s system 98% cpu 6:02.87 total
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Why should text files end with a newline? - Stack Overflow
The first line (like all lines) needs no \n to start it. The last line (like all lines) needs an \n to end...
Read more >How do I remove the newline from the last line in a file in order ...
Though, you can remove newline character from all lines by using tr -d '\n' :
Read more >Line Formats (Comparing and Merging Files) - GNU.org
The first character of output is ' - ' for deleted lines, ' | ' for added lines, and a space for unchanged...
Read more >Bash: how to know if the last command's output ends with a ...
If the last output ends without a newline, you will get: $ echo -n 'abc' abc% $. Where the % uses inverted background/foreground....
Read more >Overwrite Previously Printed Lines | by Thijmen Dam - ITNEXT
Print another line, but because the cursor is now at the beginning of the previous line, the new output will be printed on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll fix the missing newline at the end in 1.0.1 too.
Fixed again 😛 Thanks for the bug report.