all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.
Date: Wed, 18 Jan 2017 00:28:57 +0100	[thread overview]
Message-ID: <20170118002853.1296be4a@scratchpost.org> (raw)
In-Reply-To: <87mvep9szx.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>

On Wed, 18 Jan 2017 00:17:06 +0100
Marius Bakke <mbakke@fastmail.com> wrote:

> Danny Milosavljevic <dannym@scratchpost.org> writes:
> 
> > Btw are you maybe working on unittest2 0.8.0 already?  
> 
> I was not finished with dulwich yet, so no. What is it needed for?

python-unittest2 -> python-testtools -> python-reno

Right now 2 of python-unittest2's unittests fail when using:

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4ad8f3a04..8001365c4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1646,17 +1646,26 @@ interfaces and processes.")
 (define-public python-unittest2
   (package
     (name "python-unittest2")
-    (version "0.5.1")
+    (version "0.8.0")
     (source
      (origin
        (method url-fetch)
-       (uri (string-append
-             "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
-             version ".tar.gz"))
+       (uri (pypi-uri "unittest2" version))
        (sha256
         (base32
-         "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
+         "0akyi9rs4dbnj1vzdcs50cab6x6zksiw7rn39jwacgygc71bj05v"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-argparse
+           (lambda _
+             (substitute* "setup.py"
+               (("argparse") "configargparse"))
+             #t)))))
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-configargparse" ,python-configargparse)))
     (home-page "http://pypi.python.org/pypi/unittest2")
     (synopsis "Python unit testing library")
     (description

The failures are:

======================================================================
FAIL: test_loadTestsFromName__relative_malformed_name (unittest2.test.test_loader.Test_TestLoader)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 425, in check_module_lookup_error
    "'module' object has no attribute '%s'" % attr, attr, regex)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 417, in _check_module_lookup_error
    'missing error string in %r' % error)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/case.py", line 1094, in assertIn
    self.fail(self._formatMessage(msg, standardMsg))
AssertionError: "'module' object has no attribute 'abc () //'" not found in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : missing error string in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 518, in test_loadTestsFromName__relative_malformed_name
    error, test, 'unittest2', 'abc () //', 'abc \(\) //')
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 429, in check_module_lookup_error
    "module '%s' has no attribute '%s'" % (name, regex), attr, regex)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 417, in _check_module_lookup_error
    'missing error string in %r' % error)
AssertionError: "module 'unittest2' has no attribute 'abc \\(\\) //'" not found in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : missing error string in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

======================================================================
FAIL: test_loadTestsFromNames__relative_malformed_name (unittest2.test.test_loader.Test_TestLoader)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 425, in check_module_lookup_error
    "'module' object has no attribute '%s'" % attr, attr, regex)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 417, in _check_module_lookup_error
    'missing error string in %r' % error)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/case.py", line 1094, in assertIn
    self.fail(self._formatMessage(msg, standardMsg))
AssertionError: "'module' object has no attribute 'abc () //'" not found in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : missing error string in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 928, in test_loadTestsFromNames__relative_malformed_name
    error, test, 'unittest2', 'abc () //', 'abc \(\) //')
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 429, in check_module_lookup_error
    "module '%s' has no attribute '%s'" % (name, regex), attr, regex)
  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py", line 417, in _check_module_lookup_error
    'missing error string in %r' % error)
AssertionError: "module 'unittest2' has no attribute 'abc \\(\\) //'" not found in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : missing error string in 'Failed to access attribute:\nTraceback (most recent call last):\n  File "/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py", line 176, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

----------------------------------------------------------------------

It's using an invalid attribute name (containing parens) and then tries to regex- and plain-match and apparently messes up there...

I'm trying to track it down.

> I was planning to do scipy next, but I'll gladly do something easier :-D

:)

  reply	other threads:[~2017-01-17 23:29 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gu878tqpjw93.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
2017-01-17 22:25 ` [PATCH 0/8] Make python-oslosphinx work in python-tests branch Danny Milosavljevic
2017-01-17 22:25   ` [PATCH 1/8] gnu: python-oslosphinx: Update to 4.9.0 Danny Milosavljevic
2017-01-17 22:25   ` [PATCH 2/8] gnu: Add python-reno Danny Milosavljevic
2017-01-17 22:36     ` Marius Bakke
2017-01-17 23:42     ` Hartmut Goebel
2017-01-17 22:25   ` [PATCH 3/8] gnu: python-requests: Update to 2.10.0 Danny Milosavljevic
2017-01-17 22:38     ` Marius Bakke
2017-01-17 23:03       ` Danny Milosavljevic
2017-01-17 22:25   ` [PATCH 4/8] gnu: Add python-dulwich Danny Milosavljevic
2017-01-17 22:43     ` Marius Bakke
2017-01-17 22:25   ` [PATCH 5/8] gnu: Add python-geventhttpclient Danny Milosavljevic
2017-01-17 22:48     ` Marius Bakke
2017-01-17 23:12       ` Danny Milosavljevic
2017-01-17 23:23         ` Marius Bakke
2017-01-17 22:25   ` [PATCH 6/8] gnu: Add python-fastimport Danny Milosavljevic
2017-01-17 22:50     ` Marius Bakke
2017-01-17 22:25   ` [PATCH 7/8] gnu: python-oslosphinx: Add python-reno Danny Milosavljevic
2017-01-17 22:51     ` Marius Bakke
2017-01-17 22:25   ` [PATCH 8/8] gnu: python-dulwich: Fix tests Danny Milosavljevic
2017-01-17 22:55     ` Marius Bakke
2017-01-17 22:58       ` Danny Milosavljevic
2017-01-17 23:38     ` Hartmut Goebel
2017-01-17 22:31   ` [PATCH 0/8] Make python-oslosphinx work in python-tests branch Marius Bakke
2017-01-17 22:46     ` Danny Milosavljevic
2017-01-17 22:56     ` Danny Milosavljevic
2017-01-17 23:17       ` Marius Bakke
2017-01-17 23:28         ` Danny Milosavljevic [this message]
2017-01-17 23:46           ` Danny Milosavljevic
2017-01-18  0:18             ` Danny Milosavljevic
2017-01-18  0:07           ` Marius Bakke
2017-01-18  0:32   ` ng0
2017-01-19  9:48     ` Danny Milosavljevic

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

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

  git send-email \
    --in-reply-to=20170118002853.1296be4a@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=mbakke@fastmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.