unit test failures with python 3.5

Bug #1475544 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oslotest (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

======================================================================
FAIL: tests.unit.test_base.TestBaseTestCase.test_fake_logs_with_log_cap
tests.unit.test_base.TestBaseTestCase.test_fake_logs_with_log_cap
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1150, in patched
    return func(*args, **keywargs)
  File "/«PKGBUILDDIR»/tests/unit/test_base.py", line 82, in test_fake_logs_with_log_cap
    env_get_mock.assert_any_calls('OS_DEBUG')
  File "/usr/lib/python3.5/unittest/mock.py", line 576, in __getattr__
    raise AttributeError(name)
AttributeError: assert_any_calls

======================================================================
FAIL: tests.unit.test_base.TestBaseTestCase.test_fake_logs_default
tests.unit.test_base.TestBaseTestCase.test_fake_logs_default
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1150, in patched
    return func(*args, **keywargs)
  File "/«PKGBUILDDIR»/tests/unit/test_base.py", line 58, in test_fake_logs_default
    env_get_mock.assert_any_calls('OS_DEBUG')
  File "/usr/lib/python3.5/unittest/mock.py", line 576, in __getattr__
    raise AttributeError(name)
AttributeError: assert_any_calls

======================================================================
FAIL: tests.unit.test_base.TestBaseTestCase.test_fake_logs_with_debug
tests.unit.test_base.TestBaseTestCase.test_fake_logs_with_debug
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1150, in patched
    return func(*args, **keywargs)
  File "/«PKGBUILDDIR»/tests/unit/test_base.py", line 69, in test_fake_logs_with_debug
    env_get_mock.assert_any_calls('OS_DEBUG')
  File "/usr/lib/python3.5/unittest/mock.py", line 576, in __getattr__
    raise AttributeError(name)
AttributeError: assert_any_calls

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-oslotest - 1:1.7.0-2ubuntu1

---------------
python-oslotest (1:1.7.0-2ubuntu1) wily; urgency=medium

  * d/p/fixtures-1.3-compat.patch: Cherry pick fix from upstream VCS to
    resolve compatibility with fixtures >= 1.3.1.
  * d/p/python-3.5-compat.patch: Cherry pick fix from upstream VCS for
    compatiblity with Python 3.5 (LP: #1475544).

 -- James Page <email address hidden> Fri, 17 Jul 2015 10:04:22 +0100

Changed in python-oslotest (Ubuntu):
status: New → 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.