# HG changeset patch # User Augie Fackler # Date 1533875844 14400 # Node ID dcecf772756ab5764d08700853a87b39a3f1adac # Parent de3a9d7ec1c2a6f3bc1f2f8d0cf2f7196bb92160 tests: port inline extension in test for beautifygraph to Python 3 test-glog-beautifygraph.t now passes on Python 3. Differential Revision: https://phab.mercurial-scm.org/D4247 diff -r de3a9d7ec1c2 -r dcecf772756a contrib/python3-whitelist --- a/contrib/python3-whitelist Fri Aug 10 00:08:06 2018 -0400 +++ b/contrib/python3-whitelist Fri Aug 10 00:37:24 2018 -0400 @@ -182,6 +182,7 @@ test-generaldelta.t test-getbundle.t test-git-export.t +test-glog-beautifygraph.t test-glog-topological.t test-gpg.t test-graft.t diff -r de3a9d7ec1c2 -r dcecf772756a tests/test-glog-beautifygraph.t --- a/tests/test-glog-beautifygraph.t Fri Aug 10 00:08:06 2018 -0400 +++ b/tests/test-glog-beautifygraph.t Fri Aug 10 00:37:24 2018 -0400 @@ -113,7 +113,7 @@ > else: > tree = [] > ui = repo.ui - > ui.write(b'%r\n' % (opts.get(b'rev', []),)) + > ui.write(b'%s\n' % stringutil.pprint(opts.get(b'rev', []))) > ui.write(revsetlang.prettyformat(tree) + b'\n') > ui.write(stringutil.prettyrepr(revs) + b'\n') > revs = smartset.baseset() # display no revisions @@ -2043,7 +2043,7 @@ , > $ testlog -r "sort(file('set:copied()'), -rev)" - ["sort(file('set:copied()'), -rev)"] + ['sort(file(\'set:copied()\'), -rev)'] [] ,