Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes CAE-333 #3290

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Fixes CAE-333 #3290

merged 4 commits into from
Jun 25, 2024

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
45 checks passed
@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>
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