You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Efraimov Oren (Jira)" <ji...@apache.org> on 2022/01/19 10:41:00 UTC
[jira] [Updated] (CASSANDRA-17269) python-driver - There are "DeprecationWarning" during the run
[ https://issues.apache.org/jira/browse/CASSANDRA-17269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Efraimov Oren updated CASSANDRA-17269:
--------------------------------------
Description:
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]
was:
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
> 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
> Assignee: Bret McGuire
> Priority: Normal
>
> 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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org