Skip to content

Commit 647f561

Browse files
author
wu.shiming
committed
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
1 parent 61ef2c3 commit 647f561

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cloudkittyclient/tests/unit/v1/test_report_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414
#
15-
import collections
15+
from collections import abc
1616
from unittest import mock
1717

1818
from cloudkittyclient.tests.unit.v1 import base
@@ -57,7 +57,7 @@ def __get_client_from_osc(*args):
5757

5858
assert len(result) == 2
5959
assert result[0] == ('Tenant ID', )
60-
assert isinstance(result[1], collections.Iterable)
60+
assert isinstance(result[1], abc.Iterable)
6161

6262
for res in result[1]:
63-
assert isinstance(res, collections.Iterable)
63+
assert isinstance(res, abc.Iterable)

0 commit comments

Comments
 (0)