@no_wasm_backend("uses bitcode compiled with asmjs, and we don't have unified triples")
def test_python(self):
    self.set_setting('EMULATE_FUNCTION_POINTER_CASTS', 1)
    self.set_setting('ERROR_ON_UNDEFINED_SYMBOLS', 0)
    bitcode = path_from_root('tests', 'third_party', 'python', 'python.bc')
    pyscript = dedent('      print \'***\'\n      print "hello python world!"\n      print [x*2 for x in range(4)]\n      t=2\n      print 10-3-t\n      print (lambda x: x*2)(11)\n      print \'%f\' % 5.47\n      print {1: 2}.keys()\n      print \'***\'\n      ')
    pyoutput = '***\nhello python world!\n[0, 2, 4, 6]\n5\n22\n5.470000\n[1]\n***'
    for lto in [0, 1]:
        print('lto:', lto)
        if (lto == 1):
            self.emcc_args += ['--llvm-lto', '1']
        self.do_run_object(bitcode, pyoutput, args=['-S', '-c', pyscript])
@no_wasm_backend("uses bitcode compiled with asmjs, and we don't have unified triples")
def test_python(self):
    self.set_setting('EMULATE_FUNCTION_POINTER_CASTS', 1)
    self.set_setting('ERROR_ON_UNDEFINED_SYMBOLS', 0)
    bitcode = path_from_root('tests', 'third_party', 'python', 'python.bc')
    pyscript = dedent('      print \'***\'\n      print "hello python world!"\n      print [x*2 for x in range(4)]\n      t=2\n      print 10-3-t\n      print (lambda x: x*2)(11)\n      print \'%f\' % 5.47\n      print {1: 2}.keys()\n      print \'***\'\n      ')
    pyoutput = '***\nhello python world!\n[0, 2, 4, 6]\n5\n22\n5.470000\n[1]\n***'
    for lto in [0, 1]:
        print('lto:', lto)
        if (lto == 1):
            self.emcc_args += ['--llvm-lto', '1']
        self.do_run_object(bitcode, pyoutput, args=['-S', '-c', pyscript])