mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Shortened diff output for unified & context diffs
This commit is contained in:
parent
aacf083388
commit
5662929a42
2 changed files with 8 additions and 12 deletions
|
@ -971,9 +971,7 @@ and actual outputs to be displayed using a unified diff:
|
|||
Line 2, in f
|
||||
Failed example:
|
||||
print '\n'.join('abcdefg')
|
||||
Differences (unified diff):
|
||||
--- Expected
|
||||
+++ Got
|
||||
Differences (unified diff with -expected +actual):
|
||||
@@ -1,8 +1,8 @@
|
||||
a
|
||||
-B
|
||||
|
@ -998,9 +996,7 @@ and actual outputs to be displayed using a context diff:
|
|||
Line 2, in f
|
||||
Failed example:
|
||||
print '\n'.join('abcdefg')
|
||||
Differences (context diff):
|
||||
*** Expected
|
||||
--- Got
|
||||
Differences (context diff with expected followed by actual):
|
||||
***************
|
||||
*** 1,8 ****
|
||||
a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue