Commit Graph

93 Commits

Author SHA1 Message Date
Michael Droettboom 04ed55f253 Fix #464: Display unknown attribute correctly (#470) 2019-06-18 17:36:45 -07:00
Michael Droettboom 619b4df99e
Fix #406: Correctly convert a raw ArrayBuffer to Python memoryview (#407) 2019-05-02 12:23:03 -04:00
Michael Droettboom c8db5b6433
Fix #401: Better error message when using "import js" (#404)
* Fix #401: Use PEP 562 to make "import js" work

* Add docs

* Fix handling of missing attributes

* Add CHANGELOG

* Fix iodide import
2019-05-01 14:56:30 -04:00
Michael Droettboom dfbe045895
Fix #382: Proxies should return the same object (#394) 2019-04-22 14:10:09 -04:00
Michael Droettboom 67ae415f09
Fix #388: Support dir(x) on JsProxies (#393) 2019-04-22 14:08:29 -04:00
Michael Droettboom 7c097fa4c2 Handle numpy scalars in python2js_buffer 2019-02-21 13:59:45 -05:00
Michael Droettboom 758ef4afbb Fix conversion from jsproxy to dict 2019-02-15 15:00:43 -05:00
Michael Droettboom 46f64b5c7c See #301: Speed-up js2python string conversion 2019-01-28 11:39:28 -05:00
Michael Droettboom 9be8f39e57 Move cpython core tests to their own module 2019-01-25 10:33:46 -05:00
Michael Droettboom 9f7f4826ce fix iodide-project/iodide#1423: Don't crash if there is no Python code 2019-01-23 16:59:52 -05:00
Michael Droettboom 1f978500a0
Merge pull request #287 from mdboom/numpy-arrays-to-typed-arrays
Convert Numpy arrays to TypedArrays when possible
2019-01-10 07:40:55 -05:00
Michael Droettboom dabc8ecc15 Add comment about expected types 2018-12-28 11:28:31 -05:00
Michael Droettboom d4c92a5d68 Convert Numpy arrays to TypedArrays when possible 2018-12-27 14:22:08 -05:00
Michael Droettboom 2d4732826a Add comments in PR 2018-12-19 16:28:39 -05:00
Michael Droettboom f4400b12f1 Add a proxy to get global objects from Python 2018-12-19 14:22:18 -05:00
Michael Droettboom 3d7b79eda0 Properly handle Numpy scalar types in python2js 2018-12-17 08:30:42 -05:00
Roman Yurchak fd6e0bf422
Merge pull request #265 from mdboom/kwargs
Fix #261: Support named arguments when calling a JS function
2018-12-04 12:42:38 +01:00
Michael Droettboom 528c0f2961 Fix #261: Support named arguments when calling a JS function 2018-11-28 12:25:04 -05:00
Roman Yurchak defc24c442 Lint 2018-11-15 13:24:27 +01:00
Michael Droettboom 0b2d4ab6d7 Fix iodide/#1151: PyDict_GetItem returns a borrowed reference 2018-11-09 18:22:54 -05:00
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