From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch. Date: Wed, 18 Jan 2017 00:28:57 +0100 Message-ID: <20170118002853.1296be4a@scratchpost.org> References: <20170117222548.13995-1-dannym@scratchpost.org> <87h94xb9nr.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170117235546.5f34bec4@scratchpost.org> <87mvep9szx.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTdBd-0006vC-5h for guix-devel@gnu.org; Tue, 17 Jan 2017 18:29:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTdBY-0002pv-Mc for guix-devel@gnu.org; Tue, 17 Jan 2017 18:29:09 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:36292) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTdBY-0002ms-C1 for guix-devel@gnu.org; Tue, 17 Jan 2017 18:29:04 -0500 In-Reply-To: <87mvep9szx.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: guix-devel@gnu.org On Wed, 18 Jan 2017 00:17:06 +0100 Marius Bakke wrote: > Danny Milosavljevic 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 :)