unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
@ 2019-12-30 21:56 Roel Janssen
  2020-01-03 23:02 ` Brett Gilio
  0 siblings, 1 reply; 9+ messages in thread
From: Roel Janssen @ 2019-12-30 21:56 UTC (permalink / raw)
  To: 38824

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

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

[-- Attachment #2: 0001-gnu-mercurial-Update-to-5.2.1.patch --]
[-- Type: text/x-patch, Size: 1775 bytes --]

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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2019-12-30 21:56 [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1 Roel Janssen
@ 2020-01-03 23:02 ` Brett Gilio
  2020-01-04  7:13   ` Roel Janssen
  0 siblings, 1 reply; 9+ messages in thread
From: Brett Gilio @ 2020-01-03 23:02 UTC (permalink / raw)
  To: Roel Janssen; +Cc: 38824

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?

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-03 23:02 ` Brett Gilio
@ 2020-01-04  7:13   ` Roel Janssen
  2020-01-05  6:15     ` LaFreniere, Joseph
  0 siblings, 1 reply; 9+ messages in thread
From: Roel Janssen @ 2020-01-04  7:13 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 38824

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-04  7:13   ` Roel Janssen
@ 2020-01-05  6:15     ` LaFreniere, Joseph
  2020-01-05  8:29       ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: LaFreniere, Joseph @ 2020-01-05  6:15 UTC (permalink / raw)
  To: 38824; +Cc: brettg

[-- Attachment #1: Type: text/plain, Size: 2257 bytes --]

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

[-- Attachment #2: test-output.txt --]
[-- Type: text/plain, Size: 145511 bytes --]

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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-05  6:15     ` LaFreniere, Joseph
@ 2020-01-05  8:29       ` Ricardo Wurmus
  2020-01-06  2:06         ` Brett Gilio
  2020-01-06 17:55         ` [bug#38824] " Marius Bakke
  0 siblings, 2 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2020-01-05  8:29 UTC (permalink / raw)
  To: joseph; +Cc: 38824, brettg


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!

-- 
Ricardo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-05  8:29       ` Ricardo Wurmus
@ 2020-01-06  2:06         ` Brett Gilio
  2020-01-07 21:00           ` Roel Janssen
  2020-01-06 17:55         ` [bug#38824] " Marius Bakke
  1 sibling, 1 reply; 9+ messages in thread
From: Brett Gilio @ 2020-01-06  2:06 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: joseph, 38824



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.


-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-05  8:29       ` Ricardo Wurmus
  2020-01-06  2:06         ` Brett Gilio
@ 2020-01-06 17:55         ` Marius Bakke
  1 sibling, 0 replies; 9+ messages in thread
From: Marius Bakke @ 2020-01-06 17:55 UTC (permalink / raw)
  To: Ricardo Wurmus, joseph; +Cc: 38824, brettg

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-06  2:06         ` Brett Gilio
@ 2020-01-07 21:00           ` Roel Janssen
  2020-01-11  1:54             ` bug#38824: " Brett Gilio
  0 siblings, 1 reply; 9+ messages in thread
From: Roel Janssen @ 2020-01-07 21:00 UTC (permalink / raw)
  To: Brett Gilio, Ricardo Wurmus; +Cc: joseph, 38824

[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]

On Mon, 2020-01-06 at 02:06 +0000, Brett Gilio wrote:
> 
> 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.
> 
> 

The attached patch runs most tests, except those that failed on my machine.
Note that it took my 16-core machine quite some time to run the whole test
suite.

Kind regards,
Roel Janssen


[-- Attachment #2: 0001-gnu-Update-mercurial-to-5.2.1.patch --]
[-- Type: text/x-patch, Size: 3064 bytes --]

From 577aee9b75249783349ef48109f580c4d27a067b Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Tue, 7 Jan 2020 21:57:21 +0100
Subject: [PATCH] gnu: Update mercurial to 5.2.1.

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

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index d354a807a3..ca8af00752 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
 ;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1230,22 +1231,43 @@ 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
-       ;; testing framework: https://nose.readthedocs.org/en/latest/ .
-       #:tests? #f))
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             ;; The following tests are known to fail.
+             (for-each (lambda (file)
+                         (delete-file (string-append "tests/" file)))
+                       '("test-extdiff.t"
+                         "test-hghave.t"
+                         "test-hgwebdir.t"
+                         "test-http-branchmap.t"
+                         "test-logtoprocess.t"
+                         "test-merge-combination.t"
+                         "test-nointerrupt.t"
+                         "test-patchbomb.t"
+                         "test-pull-bundle.t"
+                         "test-push-http.t"
+                         "test-run-tests.t"
+                         "test-serve.t"
+                         "test-subrepo-deep-nested-change.t"
+                         "test-subrepo-recursion.t"
+                         "test-transplant.t"))
+             (invoke "make" "check"))))))
+    ;; The following inputs are only needed to run the tests.
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("unzip" ,unzip)))
     (home-page "https://www.mercurial-scm.org/")
     (synopsis "Decentralized version control system")
     (description
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* bug#38824: [PATCH] gnu: mercurial: Update to 5.2.1.
  2020-01-07 21:00           ` Roel Janssen
@ 2020-01-11  1:54             ` Brett Gilio
  0 siblings, 0 replies; 9+ messages in thread
From: Brett Gilio @ 2020-01-11  1:54 UTC (permalink / raw)
  To: Roel Janssen; +Cc: Ricardo Wurmus, joseph, 38824-done

Thank you for your hard work on this Roel! I have pushed the changes to
master with 10576acbbf496a051d488c2832f1e474ef6074f3.

Closing.

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-01-11  1:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-30 21:56 [bug#38824] [PATCH] gnu: mercurial: Update to 5.2.1 Roel Janssen
2020-01-03 23:02 ` Brett Gilio
2020-01-04  7:13   ` Roel Janssen
2020-01-05  6:15     ` LaFreniere, Joseph
2020-01-05  8:29       ` Ricardo Wurmus
2020-01-06  2:06         ` Brett Gilio
2020-01-07 21:00           ` Roel Janssen
2020-01-11  1:54             ` bug#38824: " Brett Gilio
2020-01-06 17:55         ` [bug#38824] " Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).