Skip to content

Commit f5040d8

Browse files
committed
Removed failure check that fails in 3.12
1 parent fa38892 commit f5040d8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_asyncio/test_sentinel.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import socket
2+
import weakref
23
from unittest import mock
34

45
import pytest
@@ -283,8 +284,4 @@ async def test_repr_correctly_represents_connection_object(sentinel):
283284
assert (
284285
str(connection)
285286
== "<redis.asyncio.sentinel.SentinelManagedConnection,host=127.0.0.1,port=6379)>" # noqa: E501
286-
)
287-
with pytest.raises(
288-
ReferenceError, match="weakly-referenced object no longer exists"
289-
):
290-
assert connection.connection_pool
287+
)

0 commit comments

Comments
 (0)