summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
Commit message (Collapse)AuthorAgeFilesLines
* Unit tests fixes for compatibility (#1703)Chayim2021-11-141-18/+8
|
* Unit test fixes to carry pytest options through all tests (#1696)Chayim2021-11-101-0/+2
|
* Exposing the module version in loaded_modules (#1648)Chayim2021-10-261-1/+1
| | | | This is useful for the case where one wants to instantiate a module, knowing the back end version. The reason: behaviour may differ based on redis module versions.
* redisjson support (#1636)Chayim2021-10-251-1/+32
|
* Remove support for end-of-life Python 2.7 (#1318)Jon Dufresne2020-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove support for end-of-life Python 2.7 Python 2.7 is end of life. It is no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards a modern Python 3 style. Python 2.7 users can continue to use the previous version of redis-py. Was able to simplify the code: - Removed redis._compat module - Removed __future__ imports - Removed object from class definition (all classes are new style) - Removed long (Python 3 unified numeric types) - Removed deprecated __nonzero__ method - Use simpler Python 3 super() syntax - Use unified OSError exception - Use yield from syntax Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* Fix str/bytes mixup in PythonParser.read_response() (#1324)Jon Dufresne2020-04-131-0/+15
Calling str() on a bytes object can result in a BytesWarning being emitted and usually indicates a mixup between byte and string handling. Now, in the event of an invalid RESP response, use the repr value of the raw response in the exception message. Can further simplify the bytes/str handling by comparing the first byte as a bytes object instead of converting it to str. The bytes literal is available on all supported Pythons. This removes the need for the compatibility function, byte_to_chr().