Commit Graph
483 Commits
Author SHA1 Message Date
Noah 83e2a2d25f Add _osx_support.py from CPython 3.8.2 2020-08-03 10:31:35 -05:00
Noah a822ef6275 Mark unsupported tests for test_sys.py, remove redundant test_sys_executable 2020-08-02 21:00:04 -05:00
Noah e1656149aa Add test/test_sys.py from CPython 3.8.2 2020-08-02 20:57:56 -05:00
Noah 3d5ea1b38d Merge pull request #2060 from skinny121/zlib_decompress
Fix zlib decompression
2020-08-02 09:48:47 -05:00
Jeong YunWon 2c86359051 Merge pull request #2045 from Lynskylate/feature-symtable
Add is_imported and is_annotation for symtable
2020-08-02 17:42:51 +09:00
Ben Lewis dc2ca629a8 Mark failing test_zipimport.py tests. 2020-08-02 19:49:57 +12:00
Ben Lewis fa1a436a8f Fix test_zipimport.py from CPython 3.8.5 2020-08-02 19:49:57 +12:00
Ben Lewis 43434d8559 Fix zlib decompress 2020-08-02 19:49:57 +12:00
Yi Hyunjoon ad7f171998 Copy test_repl.py from CPython 3.8.3 2020-08-02 14:07:16 +09:00
Ben Lewis fa3e571889 Unmark tests that are now passing in test_unicode.py. 2020-08-02 07:22:05 +12:00
Ben Lewis 0bfe830e7a Mark failing test_string.py tests. 2020-08-02 07:22:05 +12:00
Ben Lewis 815572beb3 Copy test_string.py from CPython 3.8.3. 2020-08-02 07:22:05 +12:00
lynskylate 7d8ab3dda7 Merge remote-tracking branch 'origin/master' into feature-symtable 2020-08-02 02:31:09 +08:00
Bolun Thompson 5ecb288819 Rewrote dis tests to start a new process to capture stdout (and stderr)
This was chaned because stdout is being written to by rust code, which
currently can't be redirected by reassigning sys.stdout. This caused the
tests to fail because they couldn't see the output of what was being tested.
2020-08-01 07:21:28 -07:00
Bolun Thompson b066b94196 Tests for dis module.
As of this commit, these tests fail.
2020-08-01 07:21:28 -07:00
Bolun Thompson 22dc98091b Added graceful handling of creating a venv with pip
Currently, RustPython doesn't support the pip module. Normally, when
creating a virtual environment, pip is automatically installed. This
adds an specific error message when pip is attempted to be installed.
2020-07-31 19:32:01 -07:00
Bolun Thompson 0161b98082 Mark expected failures for the venv tests 2020-07-31 19:32:01 -07:00
Bolun Thompson 9a9a24d5f0 venv module and tests
The venv module was taken from CPython 3.9.0 Beta 5.
2020-07-31 19:30:16 -07:00
lynskylate 38a8e05d37 Merge branch 'master' of https://github.com/RustPython/RustPython into feature-symtable 2020-08-01 01:50:56 +08:00
Noah c23f279ca3 Merge pull request #2031 from BolunThompson/no_follow_symlink
Fixed bug where sys.executable may follow symlinks
2020-07-31 12:11:23 -05:00
Bolun Thompson f754a4077e Added tests for sys.executable 2020-07-30 14:03:28 -07:00
lynskylate 96a0ea9487 Merge remote-tracking branch 'origin/master' into feature-symtable 2020-07-31 02:12:41 +08:00
lynskylate 8a6ac64f03 Introduce symtable test and add is_annotation for symbol 2020-07-31 02:11:00 +08:00
Noah 460ca7d45b Merge pull request #2039 from clemado1/develop
Allow None parameter for remove, index, count method of array
2020-07-29 22:18:24 -05:00
clemado1 123eefd87f Allow None parameter for remove, index, count method of array 2020-07-30 10:36:53 +09:00
Minho Heo 6032b54666 Fix negative ** fraction to returns complex value
Fix #1986 which (-2) ** 0.5 yields NaN.

Result:

RustPython gives
`float.__rpow__(0.5, -2)
(0.00000000000000008659560562354934+1.4142135623730951j)`

CPython 3.85 gives
`>>> float.__rpow__(0.5, -2)
(8.659560562354934e-17+1.4142135623730951j)`
2020-07-30 02:27:38 +09:00
Ben Lewis ddb9606544 Unmark fixed tests in test_urlparse.py, and fix clippy error. 2020-07-29 19:05:40 +12:00
Ben Lewis 9da9b92633 Fix some cgi tests and mark some other as expected failures. 2020-07-29 19:05:40 +12:00
Ben Lewis cfc7a7c734 Copy updated urllib from CPython 3.8.3. 2020-07-29 19:05:40 +12:00
Ben Lewis 9b48296fd7 Copy cgi.py and test_cgi.py from CPython 3.8.3. 2020-07-29 19:05:40 +12:00
Ben Lewis 020c4c9fd6 Un-mark test_new_style_iter_class, as it now passes. 2020-07-27 12:42:44 +12:00
Ben Lewis 2d6a1af8e2 Fix/mark itertools tests. 2020-07-27 12:42:44 +12:00
Ben Lewis 611b4b4907 Add test_itertools.py from CPython 3.8.3. 2020-07-27 12:39:33 +12:00
Jeong YunWon 75b91087cd Merge pull request #2018 from RustPython/coolreader18/common-crate
Move a few non-python specific functions into a 'common' crate, make threading optional
2020-07-26 22:03:59 +09:00
hyperbora 19326d8411 fix a divmod bug (#2025) 2020-07-26 21:37:49 +09:00
Noah 3647568ac5 Make threading optional 2020-07-25 15:22:03 -04:00
minoring f65765fcab Add CPython 3.83 test test_cmd.py
All tests are passed.
2020-07-24 19:46:18 +09:00
Noah a742ba01fa Merge pull request #2017 from BolunThompson/init_subclass
Implementation of __init_subclass__
2020-07-21 01:14:49 -05:00
Bolun Thompson bb433bfd51 Mark expected failures and skipped tests 2020-07-20 20:13:49 -07:00
Bolun Thompson 8e52c29e3b Add test_subclassinit.py from CPython 3.8.5 2020-07-20 20:12:43 -07:00
hyperbora 91e8695c93 Mark unsupported tests 2020-07-20 20:51:11 +09:00
hyperbora 4387d96ffe add test_urlparse from CPython 3.8.4 2020-07-19 22:12:10 +09:00
Jeong YunWon 0c11b8bf67 Merge pull request #1963 from palaviv/cpython-tests
Add CPython import tests
2020-07-19 03:00:31 +09:00
Aviv Palivoda fa76d10489 Skip macos failing test 2020-07-18 17:04:35 +03:00
Aviv Palivoda 4fe66e2b9a Remove bad_coding2.py 2020-07-18 17:04:35 +03:00
Aviv Palivoda f039959480 Mark unsupported py_compile tests 2020-07-18 17:04:35 +03:00
Aviv Palivoda e6d413b30b Add test_importlib from CPython 3.8 2020-07-18 17:04:35 +03:00
Aviv Palivoda 0cdb3d1eb0 Mark unsupported py_compile tests 2020-07-18 17:04:35 +03:00
Aviv Palivoda a98c15ddfd Add test_py_compile from CPython 3.8 2020-07-18 17:04:35 +03:00
Aviv Palivoda 389f27070d Mark unsupported imp tests 2020-07-18 17:04:35 +03:00