-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 EOFError when calling the Remote WebDriver download_file method #14031
Conversation
PR Review 🔍
|
PR Code Suggestions ✨
|
Can you write a test for this that fails with current code and passes with the new code? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #14031 +/- ##
==========================================
+ Coverage 58.72% 58.73% +0.01%
==========================================
Files 86 86
Lines 5298 5300 +2
Branches 227 227
==========================================
+ Hits 3111 3113 +2
Misses 1960 1960
Partials 227 227 ☔ View full report in Codecov by Sentry. |
Not sure why it is failing this test, rerunning... |
@titusfortner I could write a test, but that would require adding a larger file. |
User description
Fix #13957, #13956
Description
Motivation and Context
Types of changes
Checklist
PR Type
Bug fix
Description
EOFError
in thedownload_file
method ofRemote WebDriver
by using a temporary directory to handle zip files.tempfile
import to manage temporary directories.Changes walkthrough 📝
webdriver.py
Fix EOFError in `download_file` method by using temporary directory
py/selenium/webdriver/remote/webdriver.py
tempfile
import.download_file
method to use a temporary directory forhandling zip files.
correctly.