# HG changeset patch # User Denis Laxalde # Date 2017-03-03 15:17:17 # Node ID 59aec562a50bea2b5782ef3ad24b246fbe44e95e # Parent 5e7fd3a0b17fbf488d09b8b27c7f8d89e1165fc5 test: end printed diff "hunks" with an empty string in test-context.py So that the resulting diff is correct and does not include a spurious empty line between lines "diff --git a/foo b/foo" and "--- a/foo". diff --git a/tests/test-context.py b/tests/test-context.py --- a/tests/test-context.py +++ b/tests/test-context.py @@ -59,7 +59,7 @@ print(ctxb.status(ctxa)) # test performing a diff on a memctx for d in ctxb.diff(ctxa, git=True): - print(d) + print(d, end='') # test safeness and correctness of "ctx.status()" print('= checking context.status():') diff --git a/tests/test-context.py.out b/tests/test-context.py.out --- a/tests/test-context.py.out +++ b/tests/test-context.py.out @@ -4,13 +4,11 @@ Latin-1 : Gr�ezi! UTF-8 : Grüezi! diff --git a/foo b/foo - --- a/foo +++ b/foo @@ -1,1 +1,2 @@ foo +bar - = checking context.status(): == checking workingctx.status: wctx._status=