Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

#231 Patch for the cpython issue with Lock bpo-27585 #241

Merged

Conversation

pfreixes
Copy link
Contributor

@pfreixes pfreixes commented Jun 7, 2017

Copied and adapted code from the PR pending to be merged yet [1]

[1] python/cpython#1031

@codecov-io
Copy link

codecov-io commented Jun 7, 2017

Codecov Report

Merging #241 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
+ Coverage   96.97%   96.99%   +0.02%     
==========================================
  Files          55       57       +2     
  Lines        7492     7449      -43     
  Branches      625      587      -38     
==========================================
- Hits         7265     7225      -40     
+ Misses        168      167       -1     
+ Partials       59       57       -2
Impacted Files Coverage Δ
tests/locks_test.py 100% <100%> (ø)
aioredis/locks.py 100% <100%> (ø)
aioredis/sentinel/pool.py 86.71% <0%> (-3.43%) ⬇️
aioredis/commands/pubsub.py 95.85% <0%> (-0.36%) ⬇️
tests/connection_test.py 100% <0%> (ø) ⬆️
aioredis/sentinel/__init__.py 100% <0%> (ø) ⬆️
tests/pool_test.py 98.29% <0%> (+0.05%) ⬆️
examples/py34/connection.py 93.18% <0%> (+0.11%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9c386d...d15cb97. Read the comment docs.

@pfreixes
Copy link
Contributor Author

@popravich any interest in bake a minor release with that fix?

raise
finally:
self._waiters.remove(fut)
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need two versions of Lock?

Copy link
Contributor

Choose a reason for hiding this comment

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

*Lock.acquire

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since Python 3.5 there were some small changes in that function, I've preferred to keep both versions separately to make it readable and of course, pass the tests with all Python 3 versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

well, that changes were actually fixing another cancellation issue python/asyncio#393

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, a shame of me. Take a look to the last commit, unified to a unique function that should be compatible with all Python versions and free of issues.

@popravich popravich merged commit 0c4c04c into aio-libs-abandoned:master Jun 21, 2017
@pfreixes
Copy link
Contributor Author

what about a minor release with that fix?

@argaen
Copy link
Contributor

argaen commented Jun 21, 2017

+1, also interested on trying a version with the new fixes :)

@popravich
Copy link
Contributor

In the middle of a process, give me a moment)

@popravich
Copy link
Contributor

New versions (v1.0.0b1 and v0.3.2) have been released.

@pfreixes
Copy link
Contributor Author

thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants