-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Fix missing ENOTSUP on PyPy #339
Conversation
I wonder if it might be better to fix this with |
P.S. Is this at all relevant? giampaolo/pysendfile#28 |
Never mind, I see. We could omit that error code from
I don't think so? |
Crashes in PyPy appear to be unrelated, due to an SFTP connection issue. Stack trace here. |
The pypy build is failing on the ftpfs tests. I've seen this before and never figured it out. It's unrelated to your changes. I'm happy to merge this and treat the pypy test fails as another task. What do you think? |
Conceptually it makes sense, but anyone creating a new PR is probably gonna be really mad that their PR is broken because of something I did. Up to you. |
How about remove the pypy builds from travis for now, and I'll add an issue to add them later? |
Added an issue. #342 If you wouldn't mind removing the pypy builds I'll merge this... |
This is gonna have a merge conflict with the pytest PR #337 which modifies the Travis file and will remove the PyPy tests. Let's get that in first and then this will be good to go. |
@dargueta Would you mind fixing that merge conflict and we should be good to go. |
for info in self._read_dir(_path).values(): | ||
yield info | ||
for info in self._read_dir(_path).values(): | ||
yield info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change have any impact on non-pypy usages of pyfilesystem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was purely because the lock is redundant, as there is a lock on L714.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was purely because the lock is redundant, as there is a lock on L714.
Yep. I thought this was the cause of a "cannot release lock not held" (or whatever that message was) that only shows up on PyPy. Apparently this isn't, because that warning still shows up.
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). | |||
- Fixed incorrect imports of `mock` on Python 3 | |||
- Removed some unused imports and unused `requirements.txt` file | |||
- Added mypy checks to Travis | |||
- Fixed missing `errno.ENOTSUP` on PyPy. Closes [#338](https://github.com/PyFilesystem/pyfilesystem2/issues/338). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this PR also close #342 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point. Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay never mind, I give up. Let's not do 342 in this PR.
@willmcgugan I think we're good now. |
Thanks @dargueta ! |
Type of changes
Checklist
Description
errno.ENOTSUP
to FTP failure codes if that's present.Closes #338