When building python-keystoneclient 1.7.1 in Debian, the below unit test errors appear. I haven't cut/past them all, but it looks like what should be deprecation warning is falling back into hard errors.
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_auth_ref_load_with_overridden_arguments
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_auth_ref_load_with_overridden_arguments
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 92, in test_auth_ref_load_with_overridden_arguments
auth_url=self.TEST_URL)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_client_with_region_name_passes_to_service_catalog
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_client_with_region_name_passes_to_service_catalog
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 152, in test_client_with_region_name_passes_to_service_catalog
region_name='North')
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_client_without_auth_params
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_client_without_auth_params
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 168, in test_client_without_auth_params
auth_url=self.TEST_URL)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 422, in assertRaises
self.assertThat(our_callable, matcher)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 483, in _matchHelper
mismatch = matcher.match(matchee)
File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 414, in match
reraise(*matchee)
File "/usr/lib/python3/dist-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 969, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_init_err_no_auth_url
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_init_err_no_auth_url
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 114, in test_init_err_no_auth_url
password='password')
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 422, in assertRaises
self.assertThat(our_callable, matcher)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 483, in _matchHelper
mismatch = matcher.match(matchee)
File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 414, in match
reraise(*matchee)
File "/usr/lib/python3/dist-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 969, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_management_url_is_updated
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_management_url_is_updated
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 137, in test_management_url_is_updated
auth_url=self.TEST_URL)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_scoped_init
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_scoped_init
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 53, in test_scoped_init
auth_url=self.TEST_URL)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_unscoped_init
keystoneclient.tests.unit.v2_0.test_client.KeystoneClientTest.test_unscoped_init
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_client.py", line 35, in test_unscoped_init
auth_url=self.TEST_URL)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_discovery.DiscoverKeystoneTests.test_get_version_local
keystoneclient.tests.unit.v2_0.test_discovery.DiscoverKeystoneTests.test_get_version_local
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_discovery.py", line 72, in test_get_version_local
cs = client.Client()
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/generic/client.py", line 52, in __init__
super(Client, self).__init__(endpoint=endpoint, **kwargs)
File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in wrapper
return f(*args, **kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/utils.py", line 337, in inner
return func(*args, **kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/httpclient.py", line 376, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_discovery.DiscoverKeystoneTests.test_get_versions
keystoneclient.tests.unit.v2_0.test_discovery.DiscoverKeystoneTests.test_get_versions
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_discovery.py", line 58, in test_get_versions
cs = client.Client()
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/generic/client.py", line 52, in __init__
super(Client, self).__init__(endpoint=endpoint, **kwargs)
File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in wrapper
return f(*args, **kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/utils.py", line 337, in inner
return func(*args, **kwargs)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/httpclient.py", line 376, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_service_catalog.ServiceCatalogTest.test_service_catalog_regions
keystoneclient.tests.unit.v2_0.test_service_catalog.ServiceCatalogTest.test_service_catalog_regions
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_service_catalog.py", line 60, in test_service_catalog_regions
auth_ref = access.AccessInfo.factory(None, self.AUTH_RESPONSE_BODY)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/access.py", line 75, in factory
auth_ref = AccessInfoV2(**body['access'])
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/access.py", line 461, in __init__
region_name=self._region_name)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/service_catalog.py", line 55, in factory
return ServiceCatalogV2(resource_dict, region_name)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/service_catalog.py", line 314, in __init__
super(ServiceCatalogV2, self).__init__(region_name=region_name)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/service_catalog.py", line 66, in __init__
DeprecationWarning)
DeprecationWarning: Setting region_name on the service catalog is deprecated in favor of passing the region name as a parameter to calls made to the service catalog as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_tenants.TenantTests.test_list_tenants_fallback_to_auth_url
keystoneclient.tests.unit.v2_0.test_tenants.TenantTests.test_list_tenants_fallback_to_auth_url
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_tenants.py", line 356, in test_list_tenants_fallback_to_auth_url
password=uuid.uuid4().hex)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
======================================================================
FAIL: keystoneclient.tests.unit.v2_0.test_tokens.TokenTests.test_authenticate_fallback_to_auth_url
keystoneclient.tests.unit.v2_0.test_tokens.TokenTests.test_authenticate_fallback_to_auth_url
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/tests/unit/v2_0/test_tokens.py", line 157, in test_authenticate_fallback_to_auth_url
password=uuid.uuid4().hex)
File "/home/zigo/sources/openstack/liberty/python-keystoneclient/build-area/python-keystoneclient-1.7.1/keystoneclient/v2_0/client.py", line 145, in __init__
'the 2.0.0 release.', DeprecationWarning)
DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.