Commit Graph

73 Commits

Author SHA1 Message Date
Michael Droettboom 343849538c
Merge pull request #199 from rth/disable-syscalls
Disable unsupported/untested syscalls in pyconfig.h
2018-10-26 09:12:30 -04:00
Roman Yurchak e24c610a89
Merge pull request #217 from mdboom/runpython-async
Add a package-loading version of runPython
2018-10-11 10:50:28 +02:00
Michael Droettboom 4124f18d1a Fix package name / import name dichotomy. Add testing. 2018-10-10 14:17:29 -04:00
Michael Droettboom 911fe83226 Fix iterators passed from Javascript to Python 2018-10-08 11:15:53 -04:00
Roman Yurchak c9b39e08fc Add pytest --run-xfail run option 2018-10-03 22:00:45 +02:00
Roman Yurchak 641f3e7b1a Skip tests that segfault, run the rest 2018-10-03 15:18:29 +02:00
Michael Droettboom cb1d7da166 Correctly handle negative values 2018-10-03 08:15:00 -04:00
Michael Droettboom e0b37f4bf8 Convert long Python ints to Javascript floats 2018-10-02 16:06:44 -04:00
Michael Droettboom a164cd1946 ADd test for iterating over a JS array 2018-09-26 18:03:09 -04:00
Michael Droettboom 87f0930d4e MAINT: Remove old if statement that's always True 2018-09-21 14:23:31 -04:00
Michael Droettboom bd846468bc
Merge pull request #176 from mdboom/reorganize-public-api
Reorg pyodide ns to separate emscripten details from public API
2018-09-19 14:33:22 -04:00
Michael Droettboom fcc2b7a036 Reorg pyodide ns to separate emscripten details from public API 2018-09-19 10:50:23 -04:00
Michael Droettboom cc47fc5fa6 Run tests standalone 2018-09-17 15:35:54 -04:00
Michael Droettboom 82ed00a3be Guard against infinite recursion in self-referential data structures 2018-09-17 13:03:08 -04:00
Roman Yurchak 59de8d4a6d Expose version information in javascript 2018-09-14 17:12:32 +02:00
Michael Droettboom 65817abc7d Add test 2018-09-12 10:16:23 -04:00
Roman Yurchak d869ac5bfc Use multi-line code snippets in tests 2018-09-07 14:35:00 +02:00
Michael Droettboom 56562257ef Fix #71: Upgrade to Python 3.7 2018-09-06 10:56:33 -04:00
Roman Yurchak f35aa2eede More review comments 2018-08-28 17:59:13 +03:00
Roman Yurchak 0b752777a2 Don't use pytest-rerunfailures 2018-08-22 12:43:07 +03:00
Roman Yurchak e2a723de5f Don't run xfail tests 2018-08-22 12:42:22 +03:00
Roman Yurchak 02b61eea62 Use selenium.browser in test_run_core_python_test 2018-08-21 11:09:34 +03:00
Roman Yurchak 02905d8ca5 Show pytest report for skipped tests, XFAIL, XPASS 2018-08-21 11:08:47 +03:00
Roman Yurchak 22ecc34847 Supporting Chrome/Firefox specific failures 2018-08-21 11:08:47 +03:00
Roman Yurchak 30195bfa8a Marking known failures in test_run_core_python_test 2018-08-21 11:08:47 +03:00
Roman Yurchak 9245f6f246 More generic selenium fixture caching mechanism 2018-08-20 20:02:12 +03:00
Michael Droettboom 154a65ff7b Add missing import 2018-08-06 15:01:59 -04:00
Michael Droettboom 6c8c599dce Automatically retry failed tests 2018-08-06 14:29:19 -04:00
Michael Droettboom fa23049e0c Minor fixups from pull request 2018-08-06 10:01:28 -04:00
Michael Droettboom 2d0b9ee23a Use pathlib for path manipulations 2018-08-03 17:11:38 -04:00
Michael Droettboom 779da3cd4e
Merge pull request #96 from mdboom/fix93-string-decoding
Fix #93 by avoiding use of TextDecoder
2018-07-30 15:37:20 -04:00
Michael Droettboom a07b6f3913 Fix #93 by avoiding use of TextDecoder
Any use of TextDecoder on a part of the Wasm HEAP seems to cause crashes
when using WebAssembly.instantiate later on (in Chrome).

The fix is to:

- Avoid use of TextDecoder in emscripten-generated code by setting
  -s TEXTDECODER=0
- Do the Python-to-JS string conversion a different way:

  - Handle the native format of a Python Unicode string (which is either UCS1,
    UCS 2 or UCS 4) directly.  This has the added advantage of being
    computationally simpler than encoding/decoding to/from UTF8.
2018-07-26 16:50:12 -04:00
Michael Droettboom 5c5bf6adf3 Obsoletes #22. Include all codecs, since removing tests imp. size. 2018-07-25 07:27:15 -04:00
Michael Droettboom 144e6f04bc LINT 2018-07-24 13:02:49 -04:00
Michael Droettboom 876c9a5bc0 Turn off full Python tests 2018-07-24 12:59:03 -04:00
Michael Droettboom 9d74363275 Turn on core Python tests 2018-07-23 12:43:08 -04:00
Michael Droettboom 1aa2fc1265 LINT 2018-07-23 11:39:10 -04:00
Michael Droettboom 59bf78f93c Decrease Python call stack size so it doesn't exceed JS call stack 2018-07-23 11:38:51 -04:00
Michael Droettboom 565548c9fd LINT 2018-07-17 12:46:02 -04:00
Michael Droettboom 66e811dac1 Don't copy data if already on the WASM heap 2018-07-17 10:38:59 -04:00
Michael Droettboom b5e9630f0d
Merge pull request #70 from iodide-project/chromedriver
Add testing with Chrome
2018-07-11 10:50:00 -04:00
Michael Droettboom 075ffca0e2 Handle catching Javascript exceptions in a unified way 2018-07-09 20:59:03 -04:00
Michael Droettboom aa03438131 Proxy compatibility for Chrome 2018-07-09 17:15:10 -04:00
Michael Droettboom 670473f29b Fix webserver 2018-07-09 17:15:04 -04:00
Michael Droettboom 5d29723374 Convert typedarrays to/from buffers/memoryviews 2018-06-29 16:18:29 -04:00
Michael Droettboom 55aedee7b3
Merge pull request #63 from iodide-project/js2python-typed-array
Fix the passing of Javascript typed arrays to Python
2018-06-27 11:45:18 -04:00
Michael Droettboom 9b5024613b Fix the passing of Javascript typed arrays to Python 2018-06-27 10:57:53 -04:00
Michael Droettboom 6b8f5e2727 Add a lot more jsproxy functionality 2018-06-25 16:55:35 -04:00
Michael Droettboom c00b9bb6b8 Fix expected error message 2018-06-25 09:09:16 -04:00
Michael Droettboom a4154d9669 Add destroy method to remove references to Python objects 2018-06-24 12:29:46 -04:00