diff mbox series

[bug#38824] gnu: mercurial: Update to 5.2.1.

Message ID 162d0ac10569d0aa3ba451a1ab2b115667ba6dc8.camel@gnu.org
State Accepted
Headers show
Series [bug#38824] gnu: mercurial: Update to 5.2.1. | expand

Commit Message

Roel Janssen Dec. 30, 2019, 9:56 p.m. UTC
Dear Guix,

It looks like we can straightforwardly update to Mercurial 5.2.1, and in the
process move away from python-2 for this package.

Attached is a patch to do so.

Kind regards,
Roel Janssen

Comments

Brett Gilio Jan. 3, 2020, 11:02 p.m. UTC | #1
Roel Janssen <roel@gnu.org> writes:

> Dear Guix,
>
> It looks like we can straightforwardly update to Mercurial 5.2.1, and in the
> process move away from python-2 for this package.
>
> Attached is a patch to do so.
>
> Kind regards,
> Roel Janssen
>
> From 3f1d92acf8ddae31379ac52cb7f3aac039c218fe Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Mon, 30 Dec 2019 22:03:16 +0100
> Subject: [PATCH] gnu: mercurial: Update to 5.2.1.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> From 5.1.x Python 3 support is “in beta”
> (see <https://www.mercurial-scm.org/wiki/UpgradeNotes#A5.1>).
>
> * gnu/packages/version-control.scm (mercurial): Update to 5.2.1.
> ---
>  gnu/packages/version-control.scm | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
> index d354a807a3..6d5a05b1b2 100644
> --- a/gnu/packages/version-control.scm
> +++ b/gnu/packages/version-control.scm
> @@ -1230,20 +1230,17 @@ control to Git repositories.")
>  (define-public mercurial
>    (package
>      (name "mercurial")
> -    (version "5.0.2")
> +    (version "5.2.1")
>      (source (origin
>               (method url-fetch)
>               (uri (string-append "https://www.mercurial-scm.org/"
>                                   "release/mercurial-" version ".tar.gz"))
>               (sha256
>                (base32
> -               "1y60hfc8gh4ha9sw650qs7hndqmvbn0qxpmqwpn4q18z5xwm1f19"))))
> +               "1pxkd37b0a1mi2zakk1hi122lgz1ffy2fxdnbs8acwlqpw55bc8q"))))
>      (build-system python-build-system)
>      (arguments
> -     `(;; Restrict to Python 2, as Python 3 would require
> -       ;; the argument --c2to3.
> -       #:python ,python-2
> -       ;; FIXME: Disabled tests because they require the nose unit
> +     `(;; FIXME: Disabled tests because they require the nose unit
>         ;; testing framework: https://nose.readthedocs.org/en/latest/ .
>         #:tests? #f))
>      (home-page "https://www.mercurial-scm.org/")

Thanks for the submission. We do have a python-nose package. Is this
different from the nose unit mentioned in the rationale for disabling
the tests?
Roel Janssen Jan. 4, 2020, 7:13 a.m. UTC | #2
On Fri, 2020-01-03 at 17:02 -0600, Brett Gilio wrote:
> Roel Janssen <roel@gnu.org> writes:
> 
> > Dear Guix,
> > 
> > It looks like we can straightforwardly update to Mercurial 5.2.1, and in the
> > process move away from python-2 for this package.
> > 
> > Attached is a patch to do so.
> > 
> > Kind regards,
> > Roel Janssen
> > 
> > From 3f1d92acf8ddae31379ac52cb7f3aac039c218fe Mon Sep 17 00:00:00 2001
> > From: Roel Janssen <roel@gnu.org>
> > Date: Mon, 30 Dec 2019 22:03:16 +0100
> > Subject: [PATCH] gnu: mercurial: Update to 5.2.1.
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset=UTF-8
> > Content-Transfer-Encoding: 8bit
> > 
> > From 5.1.x Python 3 support is “in beta”
> > (see <https://www.mercurial-scm.org/wiki/UpgradeNotes#A5.1>;).
> > 
> > * gnu/packages/version-control.scm (mercurial): Update to 5.2.1.
> > ---
> >  gnu/packages/version-control.scm | 9 +++------
> >  1 file changed, 3 insertions(+), 6 deletions(-)
> > 
> > diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-
> > control.scm
> > index d354a807a3..6d5a05b1b2 100644
> > --- a/gnu/packages/version-control.scm
> > +++ b/gnu/packages/version-control.scm
> > @@ -1230,20 +1230,17 @@ control to Git repositories.")
> >  (define-public mercurial
> >    (package
> >      (name "mercurial")
> > -    (version "5.0.2")
> > +    (version "5.2.1")
> >      (source (origin
> >               (method url-fetch)
> >               (uri (string-append "https://www.mercurial-scm.org/"
> >                                   "release/mercurial-" version ".tar.gz"))
> >               (sha256
> >                (base32
> > -               "1y60hfc8gh4ha9sw650qs7hndqmvbn0qxpmqwpn4q18z5xwm1f19"))))
> > +               "1pxkd37b0a1mi2zakk1hi122lgz1ffy2fxdnbs8acwlqpw55bc8q"))))
> >      (build-system python-build-system)
> >      (arguments
> > -     `(;; Restrict to Python 2, as Python 3 would require
> > -       ;; the argument --c2to3.
> > -       #:python ,python-2
> > -       ;; FIXME: Disabled tests because they require the nose unit
> > +     `(;; FIXME: Disabled tests because they require the nose unit
> >         ;; testing framework: https://nose.readthedocs.org/en/latest/ .
> >         #:tests? #f))
> >      (home-page "https://www.mercurial-scm.org/")
> 
> Thanks for the submission. We do have a python-nose package. Is this
> different from the nose unit mentioned in the rationale for disabling
> the tests?
> 

Thanks for responding.  I suppose it's the same python-nose.  Running the tests
(with or without python-nose in the "inputs") fail with the following error:

---
TypeError: '<' not supported between instances of 'bytes' and 'str'
command "python" "-c" "import setuptools,
tokenize;__file__='setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\\r\\n',
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with
status 1
---

I don't know much about Python, so I'm not sure whether the test suite just
hasn't been made Python-3-compatible, or whether it's something else, and
whether this has always been a problem, or whether it was introduced by this
update.

Kind regards,
Roel Janssen
LaFreniere, Joseph Jan. 5, 2020, 6:15 a.m. UTC | #3
On Fri, 2020-01-03 at 17:02 -0600, Brett Gilio wrote:
> We do have a python-nose package. Is this different from the 
> nose unit mentioned in the rationale for disabling the tests?

I can confirm Roel Janssen's guess that python-nose is the 
relevant package and that it provides the nose unit test runner.

Roel Janssen <roel@gnu.org> writes:
> I don't know much about Python, so I'm not sure whether the test 
> suite just hasn't been made Python-3-compatible, or whether it's 
> something else, and whether this has always been a problem, or 
> whether it was introduced by this update.

From https://www.mercurial-scm.org/wiki/Python3 as of this 
writing:
> Mercurial 5.2 is the first release that officially has support 
> for Python 3. Supported Python 3 versions are 3.5, 3.6, and 
> 3.7. Python 3.8 mostly works, but there are a few known 
> incompatibilities. Mercurial with Python 3 on Windows is not yet 
> widely tested and there are some known issues.

> It is the project policy for Mercurial and its core extensions 
> to be compatible with Python 3. Over 99% of tests pass with 
> Python 3 and test regressions are treated seriously.

> Most used 3rd party extensions like evolve and topic have been 
> ported to Python 3. There are some which have not yet been 
> ported.

> Assuming Windows porting proceeds well, it is expected we will 
> drop support for Python 2.7 sometime in 2020.

The output I obtained from running `python3 -m nose` in the 
repository's root is attached.  Looking at 
e.g. mercurial/pycompat.py shows that Mercurial's devs are indeed 
aware of these Python3 compatibility issues:

> # TODO: .buffer might not exist if std streams were replaced; 
> we'll need
> # a silly wrapper to make a bytes stream backed by a unicode 
> one.

I think that for now the options are to
1. continue using Python2 for Mercurial;
2. use Python3 but disable all tests, as Janssen's patch suggests;
3. use Python3 but disable the known-failing tests; or
4. hold off on updating the package until upstream supports 
Python3 across its entire test suite.

Of those three, I am most in favor of the third option.  I would 
be glad to submit a patch that implements it if there is agreement 
to take that direction.

--
Joseph LaFreniere
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/convert/__init__.py", line 12, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/fastannotate/__init__.py", line 106, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/fsmonitor/__init__.py", line 118, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/highlight/__init__.py", line 31, in <module>
    from . import highlight
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/highlight/highlight.py", line 17, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/infinitepush/__init__.py", line 109, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/largefiles/__init__.py", line 109, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/cmdutil.py", line 15, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/lfs/__init__.py", line 127, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/narrow/__init__.py", line 17, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/localrepo.py", line 18, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/remotefilelog/__init__.py", line 134, in <module>
    from mercurial.i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/zeroconf/__init__.py", line 31, in <module>
    from . import Zeroconf
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/hgext/zeroconf/Zeroconf.py", line 92, in <module>
    from mercurial import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hgweb/__init__.py", line 13, in <module>
    from ..i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: SyntaxError (invalid syntax (_base.py, line 416))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/thirdparty/concurrent/futures/__init__.py", line 10, in <module>
    from ._base import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/thirdparty/concurrent/futures/_base.py", line 416
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-absorb-filefixupstate.py", line 4, in <module>
    from mercurial import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-ancestor.py", line 12, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/ancestor.py", line 13, in <module>
    from . import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/dagop.py", line 14, in <module>
    from . import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-annotate.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/mdiff.py", line 14, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-atomictempfile.py", line 10, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-batching.py", line 12, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/localrepo.py", line 18, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-bdiff.py", line 6, in <module>
    from mercurial import mdiff
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/mdiff.py", line 14, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-cappedreader.py", line 6, in <module>
    from mercurial import util
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/util.py", line 38, in <module>
    from .pycompat import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-cbor.py", line 19, in <module>
    from mercurial.utils import cborutil
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/utils/cborutil.py", line 13, in <module>
    from .. import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-check-interfaces.py", line 5, in <module>
    from mercurial import encoding
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-config-env.py", line 7, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-context.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/context.py", line 15, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: KeyError ('TESTDIR')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-demandimport.py", line 17, in <module>
    ['python', '%s/hghave' % os.environ['TESTDIR'], 'demandimport']
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'TESTDIR'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-dispatch.py", line 4, in <module>
    from mercurial import dispatch
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/dispatch.py", line 22, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-doctest.py", line 52, in <module>
    testmod('mercurial.changegroup')
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-doctest.py", line 36, in testmod
    __import__(name)
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/changegroup.py", line 14, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-duplicateoptions.py", line 3, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/commands.py", line 16, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-encoding-func.py", line 5, in <module>
    from mercurial import encoding
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-extensions-wrapfunction.py", line 3, in <module>
    from mercurial import extensions
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/extensions.py", line 17, in <module>
    from .i18n import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-fastannotate-revmap.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: KeyError ('TESTDIR')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-filecache.py", line 8, in <module>
    ['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable']
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'TESTDIR'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-hg-parseurl.py", line 5, in <module>
    from mercurial import hg
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hg.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-hgweb-auth.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-hgwebdir-paths.py", line 4, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hg.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-hybridencode.py", line 5, in <module>
    from mercurial import store
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/store.py", line 16, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-lfs-pointer.py", line 4, in <module>
    from mercurial import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-linelog.py", line 7, in <module>
    from mercurial import linelog
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/linelog.py", line 27, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-linerange.py", line 4, in <module>
    from mercurial import error, mdiff
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-lock.py", line 11, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-lrucachedict.py", line 7, in <module>
    from mercurial import util
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/util.py", line 38, in <module>
    from .pycompat import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-manifest.py", line 9, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/manifest.py", line 15, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-match.py", line 7, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/match.py", line 15, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-mdiff.py", line 6, in <module>
    from mercurial import mdiff
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/mdiff.py", line 14, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-minifileset.py", line 4, in <module>
    from mercurial import minifileset
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/minifileset.py", line 10, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-minirst.py", line 2, in <module>
    from mercurial import minirst
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/minirst.py", line 25, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-parseindex2.py", line 17, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/policy.py", line 13, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-pathencode.py", line 18, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-propertycache.py", line 11, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hg.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-revlog-ancestry.py", line 3, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hg.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-revlog-raw.py", line 9, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/encoding.py", line 14, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-rust-ancestor.py", line 5, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-rust-discovery.py", line 4, in <module>
    from mercurial import policy
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/policy.py", line 13, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-simplekeyvaluefile.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-simplemerge.py", line 19, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-sshserver.py", line 8, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/wireprotoserver.py", line 14, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-storage.py", line 7, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-symlink-os-yes-fs-no.py", line 6, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/commands.py", line 16, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-trusted.py", line 10, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-ui-color.py", line 4, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/dispatch.py", line 22, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-ui-config.py", line 2, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/dispatch.py", line 22, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-ui-verbosity.py", line 4, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-url.py", line 17, in <module>
    from mercurial import sslutil
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/sslutil.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-util.py", line 8, in <module>
    from mercurial import pycompat, util, utils
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: KeyError ('TESTDIR')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-verify-repo-operations.py", line 14, in <module>
    if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'], 'slow']):
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'TESTDIR'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-walkrepo.py", line 5, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hg.py", line 17, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-wireproto-clientreactor.py", line 7, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-wireproto-framing.py", line 5, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/util.py", line 38, in <module>
    from .pycompat import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-wireproto-serverreactor.py", line 5, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/ui.py", line 23, in <module>
    from .i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-wireproto.py", line 5, in <module>
    from mercurial import (
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/error.py", line 17, in <module>
    from . import pycompat
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

======================================================================
ERROR: Failure: AttributeError ('_io.StringIO' object has no attribute 'buffer')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/gnu/store/i1wn477829w4b5pymm0gbrdvl5xj0gwi-profile/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/gnu/store/9ikb5gyrjvhmggkmxf18mapzxqfcgxjl-python-3.7.4/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/tests/test-wsgirequest.py", line 5, in <module>
    from mercurial.hgweb import request as requestmod
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/hgweb/__init__.py", line 13, in <module>
    from ..i18n import _
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/i18n.py", line 15, in <module>
    from .pycompat import getattr
  File "/home/lafrenierejm/source/org.mercurial-scm.www/hg-stable/mercurial/pycompat.py", line 134, in <module>
    stdout = sys.stdout.buffer
AttributeError: '_io.StringIO' object has no attribute 'buffer'

----------------------------------------------------------------------
Ran 70 tests in 0.232s

FAILED (errors=70)
Ricardo Wurmus Jan. 5, 2020, 8:29 a.m. UTC | #4
LaFreniere, Joseph <joseph@lafreniere.xyz> writes:

> I think that for now the options are to
> 1. continue using Python2 for Mercurial;
> 2. use Python3 but disable all tests, as Janssen's patch suggests;
> 3. use Python3 but disable the known-failing tests; or
> 4. hold off on updating the package until upstream supports 
> Python3 across its entire test suite.
>
> Of those three, I am most in favor of the third option.  I would 
> be glad to submit a patch that implements it if there is agreement 
> to take that direction.

I agree that option 3 (with a link to the upstream discussion) is the
right way to go forward.

Thanks!
Brett Gilio Jan. 6, 2020, 2:06 a.m. UTC | #5
Jan 5, 2020 2:30:14 AM Ricardo Wurmus :

>
> LaFreniere, Joseph writes:
>
>
> > I think that for now the options are to
> > 1. continue using Python2 for Mercurial;
> > 2. use Python3 but disable all tests, as Janssen's patch suggests;
> > 3. use Python3 but disable the known-failing tests; or
> > 4. hold off on updating the package until upstream supports
> > Python3 across its entire test suite.
> >
> > Of those three, I am most in favor of the third option. I would
> > be glad to submit a patch that implements it if there is agreement
> > to take that direction.
> >
>
> I agree that option 3 (with a link to the upstream discussion) is the
> right way to go forward.
>
> Thanks!
>
> --
> Ricardo
>

I am also in agreement that working-around the failing tests is the best option, with a backup of just disabling the tests until the python3 incompatibilities are resolved. We need to work away from python2 wherever possible. Since the upstream is aware of the problem I see avoiding python2 as a reasonable alternative to work-arounds.
Marius Bakke Jan. 6, 2020, 5:55 p.m. UTC | #6
Ricardo Wurmus <rekado@elephly.net> writes:

> LaFreniere, Joseph <joseph@lafreniere.xyz> writes:
>
>> I think that for now the options are to
>> 1. continue using Python2 for Mercurial;
>> 2. use Python3 but disable all tests, as Janssen's patch suggests;
>> 3. use Python3 but disable the known-failing tests; or
>> 4. hold off on updating the package until upstream supports 
>> Python3 across its entire test suite.
>>
>> Of those three, I am most in favor of the third option.  I would 
>> be glad to submit a patch that implements it if there is agreement 
>> to take that direction.
>
> I agree that option 3 (with a link to the upstream discussion) is the
> right way to go forward.

That seems orthogonal to the discussed patch though, seeing as tests
have been disabled in Mercurial since forever.
diff mbox series

Patch

From 3f1d92acf8ddae31379ac52cb7f3aac039c218fe Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Mon, 30 Dec 2019 22:03:16 +0100
Subject: [PATCH] gnu: mercurial: Update to 5.2.1.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From 5.1.x Python 3 support is “in beta”
(see <https://www.mercurial-scm.org/wiki/UpgradeNotes#A5.1>).

* gnu/packages/version-control.scm (mercurial): Update to 5.2.1.
---
 gnu/packages/version-control.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index d354a807a3..6d5a05b1b2 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1230,20 +1230,17 @@  control to Git repositories.")
 (define-public mercurial
   (package
     (name "mercurial")
-    (version "5.0.2")
+    (version "5.2.1")
     (source (origin
              (method url-fetch)
              (uri (string-append "https://www.mercurial-scm.org/"
                                  "release/mercurial-" version ".tar.gz"))
              (sha256
               (base32
-               "1y60hfc8gh4ha9sw650qs7hndqmvbn0qxpmqwpn4q18z5xwm1f19"))))
+               "1pxkd37b0a1mi2zakk1hi122lgz1ffy2fxdnbs8acwlqpw55bc8q"))))
     (build-system python-build-system)
     (arguments
-     `(;; Restrict to Python 2, as Python 3 would require
-       ;; the argument --c2to3.
-       #:python ,python-2
-       ;; FIXME: Disabled tests because they require the nose unit
+     `(;; FIXME: Disabled tests because they require the nose unit
        ;; testing framework: https://nose.readthedocs.org/en/latest/ .
        #:tests? #f))
     (home-page "https://www.mercurial-scm.org/")
-- 
2.24.0