1d1cfbaea0c640ed20defa24d2cc688c6132f32b,contrib/awslambda/python/tests/python/pants_test/contrib/awslambda/python/test_python_awslambda_integration.py,PythonAWSLambdaIntegrationTest,test_awslambda_bundle,#PythonAWSLambdaIntegrationTest#,16

Before Change


      // is distinct from the pex"s entry point - a handler must be a function with two arguments,
      // whereas the pex entry point is a module).
      awslambda = os.path.join(distdir, "hello-lambda.pex")
      output = subprocess.check_output(env={"PEX_INTERPRETER": "1"}, args=[
        "{} -c "from lambdex_handler import handler; handler(None, None)"".format(awslambda)
      ], shell=True)
      self.assertEquals(b"Hello from the United States!", output.strip())

After Change


      result = subprocess.run(
        f"{awslambda} -c "from lambdex_handler import handler; handler(None, None)"",
        shell=True,
        env={"PEX_INTERPRETER": "1", "PATH": os.environ["PATH"]},
        stdout=subprocess.PIPE,
        encoding="utf-8",
        check=True,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 1d1cfbaea0c640ed20defa24d2cc688c6132f32b
Time: 2019-11-19
Author: ericarellano@me.com
File Name: contrib/awslambda/python/tests/python/pants_test/contrib/awslambda/python/test_python_awslambda_integration.py
Class Name: PythonAWSLambdaIntegrationTest
Method Name: test_awslambda_bundle


Project Name: arraiy/torchgeometry
Commit Name: 206798edabf99a8ee4bb03ffba25968d2057bb18
Time: 2020-07-30
Author: anguelos.nicolaou@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: r9y9/wavenet_vocoder
Commit Name: ee5e88bc0446986f6bc74080835e0566856d0e79
Time: 2019-09-07
Author: zryuichi@gmail.com
File Name: setup.py
Class Name:
Method Name: