File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import logging
1111import os
1212import timeit
13- from botocore .vendored .requests .packages import urllib3
1413import multiprocessing
1514
1615from . import event
2221logging .basicConfig (stream = sys .stdout ,
2322 level = logging .INFO ,
2423 format = '[%(name)s - %(levelname)s - %(asctime)s] %(message)s' )
25- urllib3 .disable_warnings ()
2624
2725
2826ERR_TYPE_EXCEPTION = 0
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ def run_tests(self):
2525
2626version = "0.1.8"
2727
28+ TEST_REQUIRE = ['pytest' ]
29+ if sys .version_info [0 ] == 2 :
30+ TEST_REQUIRE = ['pytest==4.6.3' ]
31+
2832setup (name = "python-lambda-local" ,
2933 version = version ,
3034 description = "Run lambda function in python on local machine." ,
@@ -45,7 +49,7 @@ def run_tests(self):
4549 packages = find_packages (exclude = ['examples' , 'tests' ]),
4650 include_package_data = True ,
4751 zip_safe = False ,
48- tests_require = [ 'pytest' ] ,
52+ tests_require = TEST_REQUIRE ,
4953 cmdclass = {'test' : PyTest },
5054 install_requires = ['boto3' ],
5155 entry_points = {
You can’t perform that action at this time.
0 commit comments