# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1529955527 -19800 # Node ID 4c358bdaada85637d56187ccb7e8b2c93e6b99d7 # Parent 9ef9884e5d504a9f6d3fc52de15d6c9b3e5e0518 py3: add b'' prefixes in tests/test-bundle2-pushback.t This makes the test run on Python 3. # skip-blame because just b'' prefixes. Differential Revision: https://phab.mercurial-scm.org/D3834 diff -r 9ef9884e5d50 -r 4c358bdaada8 contrib/python3-whitelist --- a/contrib/python3-whitelist Tue Jun 26 00:37:02 2018 +0530 +++ b/contrib/python3-whitelist Tue Jun 26 01:08:47 2018 +0530 @@ -33,6 +33,7 @@ test-bundle-type.t test-bundle-vs-outgoing.t test-bundle2-multiple-changegroups.t +test-bundle2-pushback.t test-cappedreader.py test-casecollision.t test-cat.t diff -r 9ef9884e5d50 -r 4c358bdaada8 tests/test-bundle2-pushback.t --- a/tests/test-bundle2-pushback.t Tue Jun 26 00:37:02 2018 +0530 +++ b/tests/test-bundle2-pushback.t Tue Jun 26 01:08:47 2018 +0530 @@ -20,18 +20,18 @@ > It issues an additional pushkey part to send a new > bookmark back to the client""" > result = bundle2.handlechangegroup(op, inpart) - > if 'pushback' in op.reply.capabilities: - > params = {'namespace': 'bookmarks', - > 'key': 'new-server-mark', - > 'old': '', - > 'new': 'tip'} + > if b'pushback' in op.reply.capabilities: + > params = {b'namespace': b'bookmarks', + > b'key': b'new-server-mark', + > b'old': b'', + > b'new': b'tip'} > encodedparams = [(k, pushkey.encode(v)) for (k,v) in params.items()] - > op.reply.newpart('pushkey', mandatoryparams=encodedparams) + > op.reply.newpart(b'pushkey', mandatoryparams=encodedparams) > else: - > op.reply.newpart('output', data='pushback not enabled') + > op.reply.newpart(b'output', data=b'pushback not enabled') > return result > _newhandlechangegroup.params = bundle2.handlechangegroup.params - > bundle2.parthandlermapping['changegroup'] = _newhandlechangegroup + > bundle2.parthandlermapping[b'changegroup'] = _newhandlechangegroup > EOF $ cat >> $HGRCPATH <