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
Python 3 bug in zipfile #26301
Comments
Author: Frédéric Chapoton |
Branch: u/chapoton/26301 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:3
Sure, looks good to me. I still need to make sure to make an upstream bug report (but this is pretty minor, and after fixing it in Sage I doubt we'll revisit the issue). |
comment:4
Interestingly, I can't reproduce the bug on Cygwin, only on Linux. I was trying to see if it was still broken in master, and at first I thought maybe it was fixed. But no, it just doesn't happen on Cygwin that I can tell. Maybe some difference in how /dev/null works; not sure. |
Reviewer: Erik Bray |
Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. No feedback yet. |
comment:5
Ok, upstream bug report submitted. LGTM. |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/chapoton/26301 to |
There's a doctest that invokes this bug in Python 3.6's
zipfile
module:The
Graphics3d.testing_render_params()
opens aZipFile
in write mode to/dev/null
, so the bug seems to have to do with writing a zipfile to/dev/null
(probably to do with atell()
call somewhere).For the purposes of testing there's no reason this needs to go to
'/dev/null'
. It can just as well use a temp file, so we can implement that workaround. But we should also open an upstream bug report for thezipfile
problem, if it hasn't already been reported.Upstream bug report: https://bugs.python.org/issue34904
Upstream: Reported upstream. No feedback yet.
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
60fb5bf
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/26301
The text was updated successfully, but these errors were encountered: