D4247: tests: port inline extension in test for beautifygraph to Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Aug 10 05:53:16 UTC 2018
durin42 created this revision.
Herald added a reviewer: pulkit.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
test-glog-beautifygraph.t now passes on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4247
AFFECTED FILES
contrib/python3-whitelist
tests/test-glog-beautifygraph.t
CHANGE DETAILS
diff --git a/tests/test-glog-beautifygraph.t b/tests/test-glog-beautifygraph.t
--- a/tests/test-glog-beautifygraph.t
+++ b/tests/test-glog-beautifygraph.t
@@ -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>,
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -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
To: durin42, pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list