Efraimov Oren created CASSANDRA-17269:
-----------------------------------------

             Summary: python-driver - There are "DeprecationWarning" during the 
run
                 Key: CASSANDRA-17269
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17269
             Project: Cassandra
          Issue Type: Bug
            Reporter: Efraimov Oren


A user that using Python version 3.8+ has the following issues:

1.
{code:java}
cassandra/io/asyncioreactor.py:178: DeprecationWarning: "@coroutine" decorator 
is deprecated since Python 3.8, use "async def" instead {code}
2.  

 
{code:java}
tests/integration/standard/test_cluster.py:153: DeprecationWarning: invalid 
escape sequence \( 08:27:34  with self.assertRaisesRegexp(NoHostAvailable, 
"OperationTimedOut\('errors=Timed out creating connection \(1 seconds\)"):{code}
 

3. A user that runs the tests via Pytest will see the following warning:
{code:java}
tests/integration/__init__.py:1022
PytestCollectionWarning: cannot collect test class 'TestCluster' because it has 
a __new__ constructor (from: 
tests/integration/standard/test_authentication_misconfiguration.py)
08:27:34      class TestCluster(object): {code}
 

My PR will fix those issues

https://github.com/datastax/python-driver/pull/1118

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to