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

Fix read_shapefile unit tests caused by closed BytesIO streams #1418

Merged
merged 3 commits into from
May 12, 2022

Conversation

mcflugen
Copy link
Member

This pull request fixes some failing unit tests caused by a new version of pyshp. With pyshp version 2.3.0, shapefile.Writer closes open streams, which makes those streams inaccessible after the writer completes, causing tests that continue to use these streams to fail. This error is described in GeospatialPython/pyshp#244.

For now I've just limited pyshp versions to anything other than 2.3.0.

@mcflugen mcflugen merged commit dbe989a into master May 12, 2022
@mcflugen mcflugen deleted the mcflugen/require-older-pyshp branch May 12, 2022 16:06
@karimbahgat
Copy link

Fixed in v2.3.1.

@mcflugen
Copy link
Member Author

Fixed in v2.3.1.

🎉 Excellent! Thanks @karimbahgat!

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