# HG changeset patch # User Boris Feld # Date 1529756783 -3600 # Node ID b9724978633ea0b8507dd8023ec79a255a8227be # Parent c88d2c9b00dd639971d6107d8484874e880f3f19 tests: update test-context.py to use diffopts as diff argument diff -r c88d2c9b00dd -r b9724978633e tests/test-context.py --- a/tests/test-context.py Thu Jun 28 16:11:13 2018 +0200 +++ b/tests/test-context.py Sat Jun 23 13:26:23 2018 +0100 @@ -10,6 +10,7 @@ scmutil, ui as uimod, ) +from mercurial.utils import diffutil print_ = print def print(*args, **kwargs): @@ -76,8 +77,8 @@ print(ctxb.status(ctxa)) # test performing a diff on a memctx - -for d in ctxb.diff(ctxa, opts={'git': True}): +diffopts = diffutil.diffopts(repo.ui, {'git': True}) +for d in ctxb.diff(ctxa, opts=diffopts): printb(d, end=b'') # test safeness and correctness of "ctx.status()"