[Python-modules-team] Bug#811468: nose: FTBFS: AttributeError: 'Derived' object has no attribute 'value'

Chris Lamb lamby at debian.org
Tue Jan 19 09:00:17 UTC 2016


Source: nose
Version: 1.3.6-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

nose fails to build from source in unstable/amd64:

  [..]

  test_defaults (test_xunit.TestOptions) ... ok
  test_file_from_environ (test_xunit.TestOptions) ... ok
  test_file_from_opt (test_xunit.TestOptions) ... ok
  test_dot_in_args (test_xunit.TestSplitId) ... ok
  test_grandchild_has_dot_in_args (test_xunit.TestSplitId) ... ok
  test_no_dot_in_args (test_xunit.TestSplitId) ... ok
  test_no_parenthesis (test_xunit.TestSplitId) ... ok
  test_addError (test_xunit.TestXMLOutputWithXML) ... FAIL
  test_addError_early (test_xunit.TestXMLOutputWithXML) ... ok
  test_addFailure (test_xunit.TestXMLOutputWithXML) ... FAIL
  test_addFailure_early (test_xunit.TestXMLOutputWithXML) ... ok
  test_addSuccess (test_xunit.TestXMLOutputWithXML) ... FAIL
  test_addSuccess_early (test_xunit.TestXMLOutputWithXML) ... ok
  test_non_utf8_error (test_xunit.TestXMLOutputWithXML) ... ok
  
  ======================================================================
  FAIL: Doctest: imported_tests.rst
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/build/tests/functional_tests/doc_tests/test_issue145/imported_tests.rst", line 0
  
  ----------------------------------------------------------------------
  File "/home/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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.006s
  
  FAILED (errors=1)
  
  
  --------------------- >> end captured stdout << ----------------------
  
  ======================================================================
  FAIL: test_addError (test_xunit.TestXMLOutputWithXML)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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.<locals>.TC" name="runTest" time="0.000"><error type="builtins.RuntimeError" message="some error happened"><![CDATA[Traceback (most recent call last):\n  File "/home/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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.<locals>.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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6/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.<locals>.TC" name="runTest" time="0.000"></testcase></testsuite>'
  
  --------------------- >> end captured stdout << ----------------------
  
  ----------------------------------------------------------------------
  Ran 387 tests in 13.361s
  
  FAILED (SKIP=18, failures=5)
  debian/rules:25: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160119095522.QC6hZTcOrV/nose-1.3.6'
  debian/rules:14: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nose.1.3.6-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 19996 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160119/6b3bdd18/attachment-0001.obj>


More information about the Python-modules-team mailing list