cloudant / python-cloudant

A Python library for Cloudant and CouchDB
Apache License 2.0
163 stars 55 forks source link

cloudant/_common_util.py:22: DeprecationWarning: Using or importing the ABCs from 'collections' #462

Closed olexandr-klymenko closed 4 years ago

olexandr-klymenko commented 4 years ago

Please read these guidelines before opening an issue.

Bug Description

1. Steps to reproduce and the simplest code sample possible to demonstrate the issue

  1. Create a project with cloudant==2.12.0 as a dependency installed
  2. Install pytest package.
  3. Run test session

2. What you expected to happen

No warning messages during a test session

3. What actually happened

================================================================================ warnings summary ================================================================================
/home/oklymenko/.virtualenvs/zakaz-commerceman-api/lib/python3.8/site-packages/cloudant/_common_util.py:22
  /home/oklymenko/.virtualenvs/zakaz-commerceman-api/lib/python3.8/site-packages/cloudant/_common_util.py:22: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    from collections import Sequence

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Environment details

emlaver commented 4 years ago

@olexandr-klymenko thanks for finding this! We will add this to our backlog and get it done as soon as possible.

ricellis commented 4 years ago

This is a duplicate of #451