[Bug 1475544] [NEW] unit test failures with python 3.5
James Page
james.page at ubuntu.com
Fri Jul 17 08:42:47 UTC 2015
Public bug reported:
======================================================================
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
** Affects: python-oslotest (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-oslotest in Ubuntu.
https://bugs.launchpad.net/bugs/1475544
Title:
unit test failures with python 3.5
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-oslotest/+bug/1475544/+subscriptions
More information about the Ubuntu-server-bugs
mailing list