On 10/17/2016 12:44 AM, Gregory Szorc wrote:
On Sun, Oct 16, 2016 at 3:03 PM, Pulkit Goyal <7895pul...@gmail.com
<mailto:7895pul...@gmail.com>> wrote:

    # HG changeset patch
    # User Pulkit Goyal <7895pul...@gmail.com <mailto:7895pul...@gmail.com>>
    # Date 1476557196 -19800
    #      Sun Oct 16 00:16:36 2016 +0530
    # Node ID d49781829eafd0ee4917c7792aaa8987170ffe78
    # Parent  c1134c39ff3ad961af17a4130623f87e0a42d392
    py3: update test output

    A lot of patches have been pushed related to porting. This patch
    updates both
    our py3 tests.

    diff -r c1134c39ff3a -r d49781829eaf tests/test-check-py3-commands.t
    --- a/tests/test-check-py3-commands.t   Sun Oct 16 10:38:52 2016 -0700
    +++ b/tests/test-check-py3-commands.t   Sun Oct 16 00:16:36 2016 +0530
    @@ -9,6 +9,6 @@
       >   $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
       > done
       version
    -  TypeError: str expected, not bytes
    +  ImportError:
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64
       debuginstall
    -  TypeError: str expected, not bytes
    +  ImportError:
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64
    diff -r c1134c39ff3a -r d49781829eaf tests/test-check-py3-compat.t
    --- a/tests/test-check-py3-compat.t     Sun Oct 16 10:38:52 2016 -0700
    +++ b/tests/test-check-py3-compat.t     Sun Oct 16 00:16:36 2016 +0530
    @@ -16,14 +16,164 @@
       $ hg files 'set:(**.py) - grep(pygments)' | sed 's|\\|/|g' \
       > | xargs $PYTHON3 contrib/check-py3-compat.py \
       > | sed 's/[0-9][0-9]*)$/*)/'
    -  hgext/convert/transport.py: error importing: <ImportError> No
    module named 'svn.client' (error at transport.py:*)
    -  hgext/fsmonitor/pywatchman/capabilities.py: error importing:
    <ImportError> No module named 'pybser' (error at __init__.py:*)
    -  hgext/fsmonitor/pywatchman/pybser.py: error importing:
    <ImportError> No module named 'pybser' (error at __init__.py:*)
    -  hgext/fsmonitor/watchmanclient.py: error importing: <ImportError>
    No module named 'pybser' (error at __init__.py:*)
    -  hgext/mq.py: error importing: <TypeError> __import__() argument 1
    must be str, not bytes (error at extensions.py:*)
    -  mercurial/scmwindows.py: error importing: <ImportError> No module
    named 'winreg' (error at scmwindows.py:*)
    +  hgext/acl.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/automv.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/blackbox.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/bugzilla.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/censor.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/chgserver.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/children.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/churn.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/clonebundles.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/color.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/bzr.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/common.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/convcmd.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/cvs.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/cvsps.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/darcs.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/filemap.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/git.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/gnuarch.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/hg.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/monotone.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/p4.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/subversion.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/convert/transport.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/eol.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/extdiff.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/factotum.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/fetch.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/fsmonitor/pywatchman/capabilities.py: error importing:
    <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/fsmonitor/pywatchman/pybser.py: error importing:
    <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/fsmonitor/state.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/fsmonitor/watchmanclient.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/gpg.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/graphlog.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/hgk.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/histedit.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/journal.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/keyword.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/basestore.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/lfcommands.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/lfutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/localstore.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/overrides.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/proto.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/remotestore.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/reposetup.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/storefactory.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/uisetup.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/largefiles/wirestore.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/mq.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/notify.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/pager.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/patchbomb.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/purge.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/rebase.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/record.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/relink.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/schemes.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/share.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/shelve.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/strip.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/transplant.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/win32text.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  hgext/zeroconf/Zeroconf.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/archival.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/bookmarks.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/branchmap.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/bundle2.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/bundlerepo.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/byterange.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/changegroup.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/changelog.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/cmdutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/commands.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/commandserver.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/config.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/context.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/copies.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/crecord.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/destutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/dirstate.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/discovery.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/dispatch.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/exchange.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at exchange.py:*)
    +  mercurial/extensions.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/filelog.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/filemerge.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/fileset.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/formatter.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/graphmod.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/help.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hg.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/common.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/hgweb_mod.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/hgwebdir_mod.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/protocol.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/request.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/server.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/webcommands.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/webutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hgweb/wsgicgi.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/hook.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/httpconnection.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/httppeer.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/keepalive.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/localrepo.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/lock.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/mail.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/manifest.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/match.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/mdiff.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/merge.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/minirst.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/namespaces.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/obsolete.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at obsolete.py:*)
    +  mercurial/patch.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/pathutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/peer.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/profiling.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/pure/base85.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at
    check-py3-compat.py:*)
    +  mercurial/pure/bdiff.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/bdiff.so: undefined
    symbol: PyString_FromStringAndSize (error at check-py3-compat.py:*)
    +  mercurial/pure/diffhelpers.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/diffhelpers.so:
    undefined symbol: PyString_FromStringAndSize (error at
    check-py3-compat.py:*)
    +  mercurial/pure/mpatch.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/mpatch.so:
    undefined symbol: PyString_FromStringAndSize (error at
    check-py3-compat.py:*)
    +  mercurial/pure/osutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at check-py3-compat.py:*)
    +  mercurial/pure/parsers.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/parsers.so:
    undefined symbol: PyString_Type (error at check-py3-compat.py:*)
    +  mercurial/pushkey.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/pvec.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at pvec.py:*)
    +  mercurial/registrar.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/repair.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/repoview.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at obsolete.py:*)
    +  mercurial/revlog.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/revset.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/scmposix.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at scmposix.py:*)
    +  mercurial/scmutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/scmwindows.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at scmwindows.py:*)
    +  mercurial/similar.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/bdiff.so: undefined
    symbol: PyString_FromStringAndSize (error at similar.py:*)
    +  mercurial/simplemerge.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/sshpeer.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/sshserver.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/sslutil.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/statichttprepo.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/store.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/parsers.so:
    undefined symbol: PyString_Type (error at store.py:*)
    +  mercurial/streamclone.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/subrepo.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/tagmerge.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/tags.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/templatefilters.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/templatekw.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at patch.py:*)
    +  mercurial/templater.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/transaction.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/ui.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/unionrepo.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
    +  mercurial/url.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/util.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)
    +  mercurial/verify.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/base85.so:
    undefined symbol: PyString_FromStringAndSize (error at mdiff.py:*)
       mercurial/win32.py: error importing: <ImportError> No module
    named 'msvcrt' (error at win32.py:*)
       mercurial/windows.py: error importing: <ImportError> No module
    named 'msvcrt' (error at windows.py:*)
    +  mercurial/wireproto.py: error importing: <ImportError>
    /tmp/hgtests.fqjMQo/install/lib/python/mercurial/osutil.so:
    undefined symbol: Py_InitModule4_64 (error at util.py:*)

     #endif


Uhhh, this is probably fallout from my patch to enable the C extensions
on Python 3 (9dc7be1b6893).

I am able to import osutil.so in Python 3 just fine:

$ python 3.5
Python 3.5.2 (default, Sep  3 2016, 17:03:02)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
import mercurial.osutil as osutil
osutil
<module 'mercurial.osutil' from
'/home/gps/src/hg/mercurial/osutil.cpython-35m-x86_64-linux-gnu.so
<http://osutil.cpython-35m-x86_64-linux-gnu.so>'>

However, I do get these failures when running the test.

I think what's happening is the test environment compiles the C
extensions for Python 2 and then Python 3 attempts to load them. SInce
the extensions are compiled with an unexpected Python API, things blow up.

I think 9dc7be1b6893 should be dropped from the committed repo until we
can teach run-tests.py to use separate copies of the C extensions for
Python 2 and 3. Once it is dropped, this patch can also be dropped.

I've dropped it from hg-committed, you can find it at 9eb94e4425d5 in https://www.mercurial-scm.org/repo/users/marmoute/mercurial-dropped/

--
Pierre-Yves David
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to