argh 2 days trying to work python3 into working python2 :(
This commit is contained in:
parent
95c90ae15f
commit
dc98cf6f64
3 changed files with 78 additions and 36 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue