test_excutils py34 incompatabilities

Bug #1371724 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.utils
Fix Released
Medium
Joshua Harlow

Bug Description

It seems oslo.utils has a few test case issues when ran with python 3.4...

$ tox -epy34
GLOB sdist-make: /home/harlowja/Dev/oslo.utils/setup.py
py34 create: /home/harlowja/Dev/oslo.utils/.tox/py34
py34 installdeps: -r/home/harlowja/Dev/oslo.utils/requirements.txt, -r/home/harlowja/Dev/oslo.utils/test-requirements.txt
py34 inst: /home/harlowja/Dev/oslo.utils/.tox/dist/oslo.utils-0.2.0.5.g0568beb.zip
py34 runtests: commands[0] | python setup.py testr --slowest --testr-args=
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . --load-list /tmp/tmpsgqipjkt
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . --load-list /tmp/tmpcpxxyogo
======================================================================
FAIL: tests.test_excutils.ForeverRetryUncaughtExceptionsTest.test_exc_retrier_mixed_4exc_1min_gives_2logs
tags: worker-0
----------------------------------------------------------------------
traceback-1: {{{
Traceback (most recent call last):
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/fixture.py", line 112, in cleanUp
    return self._cleanups(raise_errors=raise_first)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/callmany.py", line 88, in __call__
    reraise(error[0], error[1], error[2])
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/testtools/_compat3x.py", line 16, in reraise
    raise exc_obj.with_traceback(exc_tb)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/callmany.py", line 82, in __call__
    cleanup(*args, **kwargs)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 289, in VerifyAll
    mock_obj._Verify()
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 543, in _Verify
    raise ExpectedMethodCallsError(self._expected_calls_queue)
mox3.mox.ExpectedMethodCallsError: Verify: Expected methods never called:
  0. method.__call__() -> Exception('unexpected 1',)
}}}

Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  stderr
  stdout

traceback-1: {{{
Traceback (most recent call last):
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/fixture.py", line 112, in cleanUp
    return self._cleanups(raise_errors=raise_first)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/callmany.py", line 88, in __call__
    reraise(error[0], error[1], error[2])
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/testtools/_compat3x.py", line 16, in reraise
    raise exc_obj.with_traceback(exc_tb)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/fixtures/callmany.py", line 82, in __call__
    cleanup(*args, **kwargs)
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 289, in VerifyAll
    mock_obj._Verify()
  File "/home/harlowja/Dev/oslo.utils/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 543, in _Verify
    raise ExpectedMethodCallsError(self._expected_calls_queue)
mox3.mox.ExpectedMethodCallsError: Verify: Expected methods never called:
  0. method.__call__() -> Exception('unexpected 1',)
}}}

Full error report attached...

Pip freeze:

$ pip freeze
Babel==1.3
Jinja2==2.7.3
MarkupSafe==0.23
Pygments==1.6
Sphinx==1.2.3
argparse==1.2.1
coverage==3.7.1
discover==0.4.0
docutils==0.12
extras==0.0.3
fixtures==0.3.16
flake8==2.1.0
hacking==0.9.2
iso8601==0.1.10
mccabe==0.2.1
mock==1.0.1
mox3==0.7.0
netaddr==0.7.12
oslo.config==1.4.0
oslo.i18n==1.0.0
oslo.utils==0.2.0.5.g0568beb
oslosphinx==2.2.0
oslotest==1.1.0
pbr==0.10.0
pep8==1.5.6
pyflakes==0.8.1
python-mimeparse==0.1.4
python-subunit==0.0.21
pytz==2014.7
six==1.8.0
stevedore==1.0.0
testrepository==0.0.20
testscenarios==0.4
testtools==1.1.0

Revision history for this message
Joshua Harlow (harlowja) wrote :
Changed in oslo.utils:
status: New → Confirmed
importance: Undecided → Medium
Changed in oslo.utils:
milestone: none → next-kilo
assignee: nobody → Joshua Harlow (harlowja)
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in oslo.utils:
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.