unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 34515@debbugs.gnu.org
Subject: [bug#34515] [PATCH 10/13] gnu: Add python-autobahn.
Date: Mon, 18 Feb 2019 23:23:49 -0500	[thread overview]
Message-ID: <20190219042349.GD2718@jasmine.lan> (raw)
In-Reply-To: <87wolxwlfd.fsf@elephly.net>

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

On Mon, Feb 18, 2019 at 09:27:50AM +0100, Ricardo Wurmus wrote:
> Leo Famulari <leo@famulari.name> writes:
> > * gnu/packages/python-web.scm (python-autobahn): New variable.
> […]
> > +    (arguments
> > +     `(#:tests? #f)) ; fail mysteriously
> 
> Mysteriously, eh?  Do you have any more information about this that
> might help us debug this?

Basically, the tests quit early after several errors like this:

------
______ ERROR collecting build/lib/autobahn/nvx/test/test_utf8validator.py ______
import file mismatch:
imported module 'test_utf8validator' has this __file__ attribute:
  /tmp/guix-build-python-autobahn-19.2.1.drv-0/autobahn-19.2.1/autobahn/nvx/test/test_utf8validator.py
which is not the same as the test file we want to collect:
  /tmp/guix-build-python-autobahn-19.2.1.drv-0/autobahn-19.2.1/build/lib/autobahn/nvx/test/test_utf8validator.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
------

I don't fully understand the issue but it's discussed in the pytest bug
tracker as a general issue:

https://github.com/pytest-dev/pytest/issues/529

What do you think? My opinion is that the test suite is broken.

The failure can be reproduced by adding this patch:

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c58f358c63..e4ca630498 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3014,7 +3014,23 @@ high level API for making HTTP requests when using Twisted.")
           "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
     (build-system python-build-system)
     (arguments
-     `(#:tests? #f)) ; fail mysteriously
+     `(#:tests? #t
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'adjust-tests
+           (lambda _
+             ;; This variable chooses whether to use Twisted or
+             ;; asyncio for the tests.
+             (setenv "USE_TWISTED" "true")
+             ;; The require an old pytest because they aim to support
+             ;; Python 3.3.
+             (substitute* "setup.py"
+               (("pytest>=2.8.6,<3.3.0")
+                 "pytest"))
+             #t)))))
+    (native-inputs
+     `(("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)))
     (propagated-inputs
      `(("python-cffi" ,python-cffi)
        ("python-twisted" ,python-twisted)

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

  reply	other threads:[~2019-02-19  4:25 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-17 20:51 [bug#34515] Magic-Wormhole Leo Famulari
2019-02-17 20:57 ` [bug#34515] [PATCH 01/13] gnu: Add python-humanize Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 02/13] gnu: Add python-txaio Leo Famulari
2019-02-18  8:01     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 03/13] gnu: Add python-hyperlink Leo Famulari
2019-02-18  8:04     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 04/13] gnu: python-txamqp: Depend on python-hyperlink Leo Famulari
2019-02-18  8:05     ` Ricardo Wurmus
2019-02-19  3:22       ` Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 05/13] gnu: python-twisted: Update to 17.5.0 Leo Famulari
2019-02-18  8:07     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 06/13] gnu: Add python-treq Leo Famulari
2019-02-18  8:08     ` Ricardo Wurmus
2019-02-19  3:23       ` Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 07/13] gnu: Add python-hkdf Leo Famulari
2019-02-18  8:09     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 08/13] gnu: Add python-spake2 Leo Famulari
2019-02-18  8:23     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 09/13] gnu: Add python-txtorcon Leo Famulari
2019-02-18  8:25     ` Ricardo Wurmus
2019-02-19  4:03       ` Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 10/13] gnu: Add python-autobahn Leo Famulari
2019-02-18  8:27     ` Ricardo Wurmus
2019-02-19  4:23       ` Leo Famulari [this message]
2019-02-19  7:36         ` Ricardo Wurmus
2019-02-19 19:22           ` Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 11/13] gnu: Add magic-wormhole-mailbox-server Leo Famulari
2019-02-18  8:44     ` Ricardo Wurmus
2019-02-19  4:43       ` Leo Famulari
2019-02-17 20:57   ` [bug#34515] [PATCH 12/13] gnu: Add magic-wormhole-transit-relay Leo Famulari
2019-02-18  8:48     ` Ricardo Wurmus
2019-02-17 20:57   ` [bug#34515] [PATCH 13/13] gnu: Add Magic-Wormhole Leo Famulari
2019-02-18  8:51     ` Ricardo Wurmus
2019-02-19  4:55       ` Leo Famulari
2019-02-19  7:52         ` Ricardo Wurmus
2019-02-19 19:43           ` bug#34515: " Leo Famulari
2019-02-18  8:00   ` [bug#34515] [PATCH 01/13] gnu: Add python-humanize Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190219042349.GD2718@jasmine.lan \
    --to=leo@famulari.name \
    --cc=34515@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).