argh 2 days trying to work python3 into working python2 :(

This commit is contained in:
rocky4570fft 2016-10-10 01:13:52 +10:00
commit dc98cf6f64
3 changed files with 78 additions and 36 deletions

View file

@ -1737,7 +1737,7 @@ def _process_lamda(pfunc):
def get_test_zip_file1():
pfunc = b"""
pfunc = """
def lambda_handler(event, context):
return (event, context)
"""
@ -1756,7 +1756,7 @@ def test_lambda_function():
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"ZipFile": base64.b64encode(get_test_zip_file1())
"ZipFile": base64.b64encode(get_test_zip_file1()).decode('utf-8')
},
"Handler": "lambda_function.handler",
"Description": "Test function",