Fix: avoiding issue with PytestUnraisableExceptionWarning (#1458)
Fix: avoiding issue with PytestUnraisableExceptionWarning (#1458)

* Fix: avoiding issue with PytestUnraisableExceptionWarning that is raised because of __del__() calling self.close() in Redis class, as the self.connection attribute was not set due to early failure in the Redis() constructor. Example: calling redis.StrictRedis(**connectionInfo) in a constructor, with connectionInfo={'hog':'cat'}

* linters

* linters

Co-authored-by: dvora-h <bdad084b9d2964bebbeb1cb2231a853834b7e7a8@users.noreply.github.com>
alisaifee/redis-py,mozillazg/redis-py-doc,redis/redis-py,mozillazg/redis-py-doc,alisaifee/redis-py,redis/redis-py