Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494246 - dev-python/testtools needs rebuild after dev-python/subunit update
Summary: dev-python/testtools needs rebuild after dev-python/subunit update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: bazaar+obsolete
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 493930 494236
  Show dependency tree
 
Reported: 2013-12-14 15:56 UTC by Nikoli
Modified: 2013-12-15 14:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2013-12-14 15:56:01 UTC
Sub slot should be added to dev-python/subunit and it should be used in dev-python/testtools deps. When i downgraded dev-python/subunit-0.0.16 to dev-python/subunit-0.0.15-r1 tests failed for testrepository:

>>> Source compiled.
 * python2_7: running distutils-r1_run_phase python_test
running=${PYTHON:-python} -m subunit.run   testrepository.tests.test_suite
======================================================================
FAIL: testrepository.tests.commands.test_load.TestCommandLoad.test_load_abort_over_interactive_stream
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testrepository/tests/commands/test_load.py", line 238, in test_load_abort_over_interactive_stream
    ui.outputs)
  File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 322, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 412, in assertThat
    raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: !=:
reference = [('results', *),
 ('summary',
  False,
  1,
  None,
  None,
  None,
  [('id', 0, None), ('failures', 1, None)])]
actual    = [('results', <testrepository.ui.model.TestSuiteModel object at 0x4fb14a5b50>),
 ('summary', True, 0, None, None, None, [('id', 0, None)])]
======================================================================
FAIL: process-returncode
tags: worker-0
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
Ran 336 tests in 1.273s
FAILED (id=0, failures=2, skips=2)
 * ERROR: dev-python/testrepository-0.0.17-r1::gentoo failed (test phase):


Rebuilding dev-python/testtools solved problem:
>>> Source compiled.
 * python2_7: running distutils-r1_run_phase python_test
running=${PYTHON:-python} -m subunit.run   testrepository.tests.test_suite
Ran 335 tests in 1.297s
PASSED (id=0, skips=2)

>>> Install testrepository-0.0.17-r1 into /var/package-manager/tmp/portage/dev-python/testrepository-0.0.17-r1/image/ category dev-python
Comment 1 Mike Gilbert gentoo-dev 2013-12-14 19:24:30 UTC
Can you explain why you think we need a subslot here?
Comment 2 Nikoli 2013-12-14 20:10:12 UTC
Else dev-python/subunit:= will not work. Or how else you want to trigger rebuild of dev-python/testtools after dev-python/subunit update or downgrade?
Comment 3 Mike Gilbert gentoo-dev 2013-12-15 01:52:55 UTC
subunit-0.0.16 just needs a newer testtools.

+  15 Dec 2013; Mike Gilbert <floppym@gentoo.org> subunit-0.0.16.ebuild:
+  Adjust dependency on testtools, and make the tests work.
Comment 4 Nikoli 2013-12-15 13:28:09 UTC
Tests still fail:
>>> Source compiled.
 * python2_7: running distutils-r1_run_phase python_test
/usr/bin/python2.7 setup.py test
running test
Tests running...
======================================================================
FAIL: testtools.tests.test_distutilscmd.TestCommandTest.test_test_module
----------------------------------------------------------------------
stdout: {{{
running test
Tests running...

Ran 2 tests in 0.000s
OK
}}}

Traceback (most recent call last):
  File "/var/package-manager/tmp/portage/dev-python/testtools-0.9.34/work/testtools-0.9.34/testtools/tests/test_distutilscmd.py", line 73, in test_test_module
    """)))
  File "/var/package-manager/tmp/portage/dev-python/testtools-0.9.34/work/testtools-0.9.34/testtools/testcase.py", line 414, in assertThat
    raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'running test\nTests running...\n\nRan 2 tests in 0.000s\nOK\n' does not match /Tests running...\n\nRan 2 tests in \d.\d\d\ds\nOK\n/
======================================================================
FAIL: testtools.tests.test_distutilscmd.TestCommandTest.test_test_suite
----------------------------------------------------------------------
stdout: {{{
running test
Tests running...

Ran 2 tests in 0.000s
OK
}}}

Traceback (most recent call last):
  File "/var/package-manager/tmp/portage/dev-python/testtools-0.9.34/work/testtools-0.9.34/testtools/tests/test_distutilscmd.py", line 95, in test_test_suite
    """)))
  File "/var/package-manager/tmp/portage/dev-python/testtools-0.9.34/work/testtools-0.9.34/testtools/testcase.py", line 414, in assertThat
    raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'running test\nTests running...\n\nRan 2 tests in 0.000s\nOK\n' does not match /Tests running...\n\nRan 2 tests in \d.\d\d\ds\nOK\n/

Ran 1170 tests in 0.206s
FAILED (failures=2)

>>> Install testtools-0.9.34 into /var/package-manager/tmp/portage/dev-python/testtools-0.9.34/image/ category dev-python

Or is it better to open new bug?
Comment 5 Mike Gilbert gentoo-dev 2013-12-15 14:51:02 UTC
It's a different bug, so yes.

Please attach a full build log, along with temp/build-python2_7.log.