File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 77chardet
88unittest2
99selenium == 3.14.1
10- requests >= 2.20.0
10+ requests == 2.20.0
11+ urllib3 == 1.24
1112pytest >= 3.9.1
1213pytest-cov >= 2.6.0
1314pytest-html >= 1.19.0
Original file line number Diff line number Diff line change 1616import os
1717import platform
1818import requests
19+ import urllib3 # Some systems don't have requests.packages.urllib3
1920import shutil
2021import sys
2122import tarfile
2223import zipfile
2324from seleniumbase import drivers # webdriver storage folder for SeleniumBase
24- requests . packages . urllib3 .disable_warnings ()
25+ urllib3 .disable_warnings ()
2526DRIVER_DIR = os .path .dirname (os .path .realpath (drivers .__file__ ))
2627
2728
@@ -185,7 +186,7 @@ def main():
185186 if not os .path .exists (downloads_folder ):
186187 os .mkdir (downloads_folder )
187188 local_file = open (file_path , 'wb' )
188- http = requests . packages . urllib3 .PoolManager ()
189+ http = urllib3 .PoolManager ()
189190 remote_file = http .request ('GET' , download_url , preload_content = False )
190191 print ('\n Downloading %s from:\n %s ...' % (file_name , download_url ))
191192 local_file .write (remote_file .read ())
Original file line number Diff line number Diff line change 1717
1818setup (
1919 name = 'seleniumbase' ,
20- version = '1.16.10 ' ,
20+ version = '1.16.11 ' ,
2121 description = 'All-In-One Test Automation Framework' ,
2222 long_description = long_description ,
2323 long_description_content_type = 'text/markdown' ,
5959 'chardet' ,
6060 'unittest2' ,
6161 'selenium==3.14.1' ,
62- 'requests>=2.20.0' ,
62+ 'requests==2.20.0' , # Changing this may effect "urllib3"
63+ 'urllib3==1.24' , # Keep this lib in sync with "requests"
6364 'pytest>=3.9.1' ,
6465 'pytest-cov>=2.6.0' ,
6566 'pytest-html>=1.19.0' ,
You can’t perform that action at this time.
0 commit comments