Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7859

nose python3.5 issues

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Brian May <brian@linuxpenguins.xyz>
Newsgroups linux.debian.maint.python
Subject nose python3.5 issues
Date Thu, 19 Nov 2015 01:30:01 +0100
Message-ID <qwlgR-20q-9@gated-at.bofh.it> (permalink)
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Nov 19 00:23:53 2015
Old-Return-Path <brian@linuxpenguins.xyz>
X-Amavis-Spam-Status No, score=-7.6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
Content-Type text/plain
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13173
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/87mvua25xb.fsf@prune.linuxpenguins.xyz
Approved robomod@news.nic.it
Lines 149
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 19 Nov 2015 11:23:28 +1100
X-Original-Message-ID <87mvua25xb.fsf@prune.linuxpenguins.xyz>
Xref csiph.com linux.debian.maint.python:7859

Show key headers only | View raw


Had a go at packaging the latest nose for debian, but tests fail under
Python 3.5. Think this is the upstream issue
https://github.com/nose-devs/nose/issues/928.

Have pushed to git.


======================================================================
FAIL: Doctest: imported_tests.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.5.0/lib/python3.5/doctest.py", line 2189, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for imported_tests.rst
  File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/doc_tests/test_issue145/imported_tests.rst", line 0

----------------------------------------------------------------------
File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/doc_tests/test_issue145/imported_tests.rst", line 43, in imported_tests.rst
Failed example:
    run(argv=argv) # doctest: +REPORT_NDIFF
Differences (ndiff with -expected +actual):
      package1 setup
      test (package1.test_module.TestCase) ... ok
      package1.test_module.TestClass.test_class ... ok
      package1.test_module.test_function ... ok
      package2c setup
    - test (package2c.test_module.TestCase) ... ok
    ?                             ^^  ^  ^
    + test (package2c.test_module.transplant_class.<locals>.C) ... ok
    ?                             ^^^^ ++++ ^^^  ^^^^^^^^^^^^
      package2c.test_module.TestClass.test_class ... ok
      package2f setup
      package2f.test_module.test_function ... ok
      <BLANKLINE>
      ----------------------------------------------------------------------
      Ran 6 tests in ...s
      <BLANKLINE>
      OK
----------------------------------------------------------------------
File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/doc_tests/test_issue145/imported_tests.rst", line 72, in imported_tests.rst
Failed example:
    run(argv=argv) # doctest: +REPORT_NDIFF
Differences (ndiff with -expected +actual):
      package2c setup
    - test (package2c.test_module.TestCase) ... ok
    ?                             ^^  ^  ^
    + test (package2c.test_module.transplant_class.<locals>.C) ... ok
    ?                             ^^^^ ++++ ^^^  ^^^^^^^^^^^^
      package2c.test_module.TestClass.test_class ... ok
      <BLANKLINE>
      ----------------------------------------------------------------------
      Ran 2 tests in ...s
      <BLANKLINE>
      OK
----------------------------------------------------------------------
File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/doc_tests/test_issue145/imported_tests.rst", line 99, in imported_tests.rst
Failed example:
    run(argv=argv) # doctest: +REPORT_NDIFF
Differences (ndiff with -expected +actual):
      package2c setup
    - test (package2c.test_module.TestCase) ... ok
    ?                             ^^  ^  ^
    + test (package2c.test_module.transplant_class.<locals>.C) ... ok
    ?                             ^^^^ ++++ ^^^  ^^^^^^^^^^^^
      <BLANKLINE>
      ----------------------------------------------------------------------
      Ran 1 test in ...s
      <BLANKLINE>
      OK


======================================================================
FAIL: runTest (test_load_tests_from_test_case.TestLoadTestsFromTestCaseHook)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/test_load_tests_from_test_case.py", line 52, in runTest
    self.assertEqual(line.strip(), expect.pop(0))
AssertionError: 'test[34 chars]case.NoFixturePlug.loadTestsFromTestCase.<loca[18 chars]RROR' != 'test[34 chars]case.Derived) ... ERROR'
- test_value (test_load_tests_from_test_case.NoFixturePlug.loadTestsFromTestCase.<locals>.Derived) ... ERROR
+ test_value (test_load_tests_from_test_case.Derived) ... ERROR

-------------------- >> begin captured stdout << ---------------------
options
configure
Called!
test_value (test_load_tests_from_test_case.NoFixturePlug.loadTestsFromTestCase.<locals>.Derived) ... ERROR
test_value (tests.Tests) ... ok

======================================================================
ERROR: test_value (test_load_tests_from_test_case.NoFixturePlug.loadTestsFromTestCase.<locals>.Derived)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/tree/debian/python-modules/nose/build/tests/functional_tests/support/ltftc/tests.py", line 9, in test_value
    self.assertEqual(self.value, 1)
AttributeError: 'Derived' object has no attribute 'value'

----------------------------------------------------------------------
Ran 2 tests in 0.005s

FAILED (errors=1)


--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_addError (test_xunit.TestXMLOutputWithXML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/tree/debian/python-modules/nose/build/tests/unit_tests/test_xunit.py", line 193, in test_addError
    eq_(tc.attrib['classname'], "test_xunit.TC")
AssertionError: 'test_xunit.mktest.<locals>.TC' != 'test_xunit.TC'
-------------------- >> begin captured stdout << ---------------------
b'<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="1" errors="1" failures="0" skip="0"><testcase classname="test_xunit.mktest.&lt;locals&gt;.TC" name="runTest" time="0.000"><error type="builtins.RuntimeError" message="some error happened"><![CDATA[Traceback (most recent call last):\n  File "/home/brian/tree/debian/python-modules/nose/build/tests/unit_tests/test_xunit.py", line 175, in test_addError\n    raise RuntimeError("some error happened")\nRuntimeError: some error happened\n]]></error></testcase></testsuite>'

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_addFailure (test_xunit.TestXMLOutputWithXML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/tree/debian/python-modules/nose/build/tests/unit_tests/test_xunit.py", line 126, in test_addFailure
    eq_(tc.attrib['classname'], "test_xunit.TC")
AssertionError: 'test_xunit.mktest.<locals>.TC' != 'test_xunit.TC'
-------------------- >> begin captured stdout << ---------------------
b'<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="1" errors="0" failures="1" skip="0"><testcase classname="test_xunit.mktest.&lt;locals&gt;.TC" name="runTest" time="0.000"><failure type="builtins.AssertionError" message="one is not \'equal\' to two"><![CDATA[Traceback (most recent call last):\n  File "/home/brian/tree/debian/python-modules/nose/build/tests/unit_tests/test_xunit.py", line 108, in test_addFailure\n    raise AssertionError("one is not \'equal\' to two")\nAssertionError: one is not \'equal\' to two\n]]></failure></testcase></testsuite>'

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_addSuccess (test_xunit.TestXMLOutputWithXML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brian/tree/debian/python-modules/nose/build/tests/unit_tests/test_xunit.py", line 282, in test_addSuccess
    eq_(tc.attrib['classname'], "test_xunit.TC")
AssertionError: 'test_xunit.mktest.<locals>.TC' != 'test_xunit.TC'
-------------------- >> begin captured stdout << ---------------------
b'<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="1" errors="0" failures="0" skip="0"><testcase classname="test_xunit.mktest.&lt;locals&gt;.TC" name="runTest" time="0.000"></testcase></testsuite>'

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 387 tests in 12.394s

FAILED (SKIP=18, failures=5)


-- 
Brian May <brian@linuxpenguins.xyz>
https://linuxpenguins.xyz/brian/

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

nose python3.5 issues Brian May <brian@linuxpenguins.xyz> - 2015-11-19 01:30 +0100
  Re: nose python3.5 issues Dmitry Shachnev <mitya57@debian.org> - 2015-11-19 17:50 +0100

csiph-web