Skip to content

Conversation

@dmaier-redislabs
Copy link
Contributor

The bug uncovered that the init method of the base class did override the initialization of the socket_timeout parameter.

This was fixed by moving super().__init__(**kwargs) before setting the timeout and path properties.

In addition, a test case was added.

class did override the initialization of the socket_timeout parameter.
Addresses bug CAE-333 which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.
'''
def test_unix_socket_with_timeout():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two blank-lines required between function definition and doc-blocks, as well as after the test

@vladvildanov vladvildanov merged commit b7f9a4c into master Jun 25, 2024
@vladvildanov vladvildanov deleted the CAE-333 branch June 25, 2024 11:14
vladvildanov added a commit that referenced this pull request Jun 25, 2024
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
vladvildanov added a commit that referenced this pull request Jun 26, 2024
* Fixes CAE-333 (#3290)

* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>

* Updated version in setup.py

---------

Co-authored-by: David Maier <60782329+dmaier-redislabs@users.noreply.github.com>
agnesnatasya pushed a commit to agnesnatasya/redis-py that referenced this pull request Jul 20, 2024
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
vladvildanov added a commit that referenced this pull request Sep 27, 2024
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
vladvildanov added a commit that referenced this pull request Sep 27, 2024
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
vladvildanov added a commit that referenced this pull request Sep 27, 2024
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
Kakadus pushed a commit to Kakadus/redis-py that referenced this pull request Jan 10, 2025
* Fixes CAE-333, which uncovered that the init method of the base
class did override the initialization of the socket_timeout parameter.

* Added missing blank lines

* Removed blank line

* Changed to quotes

---------

Co-authored-by: vladvildanov <divinez122@outlook.com>
Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants