changeset 39092:dcecf772756a

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
author Augie Fackler <augie@google.com>
date Fri, 10 Aug 2018 00:37:24 -0400
parents de3a9d7ec1c2
children c52a8af4052a
files contrib/python3-whitelist tests/test-glog-beautifygraph.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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 @@
     <spanset- 0:7>,
     <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>>
   $ testlog -r "sort(file('set:copied()'), -rev)"
-  ["sort(file('set:copied()'), -rev)"]
+  ['sort(file(\'set:copied()\'), -rev)']
   []
   <filteredset
     <fullreposet- 0:7>,