Replace deprecated import of ABCs from collections
ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. Change-Id: I871810bbe95a3cd10f8a8df42c99e747a6dd463b
This commit is contained in:
parent
61ef2c337e
commit
647f561532
|
@ -12,7 +12,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
import collections
|
||||
from collections import abc
|
||||
from unittest import mock
|
||||
|
||||
from cloudkittyclient.tests.unit.v1 import base
|
||||
|
@ -57,7 +57,7 @@ class TestReportCli(base.BaseAPIEndpointTestCase):
|
|||
|
||||
assert len(result) == 2
|
||||
assert result[0] == ('Tenant ID', )
|
||||
assert isinstance(result[1], collections.Iterable)
|
||||
assert isinstance(result[1], abc.Iterable)
|
||||
|
||||
for res in result[1]:
|
||||
assert isinstance(res, collections.Iterable)
|
||||
assert isinstance(res, abc.Iterable)
|
||||
|
|
Loading…
Reference in New Issue