We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa38892 commit f5040d8Copy full SHA for f5040d8
tests/test_asyncio/test_sentinel.py
@@ -1,4 +1,5 @@
1
import socket
2
+import weakref
3
from unittest import mock
4
5
import pytest
@@ -283,8 +284,4 @@ async def test_repr_correctly_represents_connection_object(sentinel):
283
284
assert (
285
str(connection)
286
== "<redis.asyncio.sentinel.SentinelManagedConnection,host=127.0.0.1,port=6379)>" # noqa: E501
- )
287
- with pytest.raises(
288
- ReferenceError, match="weakly-referenced object no longer exists"
289
- ):
290
- assert connection.connection_pool
+ )
0 commit comments