D3527: tests: port test-extensions-wrapfunction to Python 3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu May 10 14:47:16 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9a0dd4dc2b49: tests: port test-extensions-wrapfunction to Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3527?vs=8621&id=8632

REVISION DETAIL
  https://phab.mercurial-scm.org/D3527

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-extensions-wrapfunction.py

CHANGE DETAILS

diff --git a/tests/test-extensions-wrapfunction.py b/tests/test-extensions-wrapfunction.py
--- a/tests/test-extensions-wrapfunction.py
+++ b/tests/test-extensions-wrapfunction.py
@@ -35,7 +35,7 @@
         print('unwrap %s: %s: %s' % (getid(w), getid(result), msg))
 
 batchwrap(wrappers + [wrappers[0]])
-batchunwrap([(wrappers[i] if i >= 0 else None)
+batchunwrap([(wrappers[i] if i is not None and i >= 0 else None)
              for i in [3, None, 0, 4, 0, 2, 1, None]])
 
 wrap0 = extensions.wrappedfunction(dummy, 'getstack', wrappers[0])
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -150,6 +150,7 @@
 test-export.t
 test-extdata.t
 test-extdiff.t
+test-extensions-wrapfunction.py
 test-extra-filelog-entry.t
 test-filebranch.t
 test-filecache.py



To: durin42, pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list