Commit Graph
6123 Commits
Author SHA1 Message Date
Noah 0876c19c04 Unskip test_json.test_tool 2020-08-03 13:20:06 -05:00
Noah dd8e9a6508 Use pylib as a dependency of the rustpython binary in order to get a Lib path 2020-08-03 13:20:06 -05:00
Noah d7bc12114d Get rid of proc-macro-hacky stuff for py_compile_bytecode 2020-08-03 13:20:04 -05:00
Jeong YunWon d33579f8e1 Merge pull request #2063 from RustPython/coolreader18/sys-tests
Add test/test_sys.py
2020-08-04 02:16:00 +09:00
Noah a52e19bc21 Fix wasm 2020-08-03 10:33:12 -05:00
Noah 83e2a2d25f Add _osx_support.py from CPython 3.8.2 2020-08-03 10:31:35 -05:00
Jeong YunWon 4a4a7baeb6 Merge pull request #2061 from tobark/symlink
Add target_is_directory parameter for symlink function
2020-08-03 18:27:02 +09:00
Yi Hyunjoon 3d0453d47d Allow dead TargetIsDirectory temporary 2020-08-03 17:35:56 +09:00
Noah a822ef6275 Mark unsupported tests for test_sys.py, remove redundant test_sys_executable 2020-08-02 21:00:04 -05:00
Noah 4bd1153b24 Add/fix a bunch of sysmodule attributes 2020-08-02 20:59:36 -05:00
Noah e1656149aa Add test/test_sys.py from CPython 3.8.2 2020-08-02 20:57:56 -05:00
Noah 7a77dbc512 Merge pull request #2062 from youknowone/buffered-io
BufferedIO.read avoid clone
2020-08-02 12:51:51 -05:00
Noah ba8c0d9a82 Use sys.excepthook when exceptions bubble to the top level 2020-08-02 12:23:12 -05:00
Jeong YunWon 7bbc729477 BufferedIO.read avoid clone 2020-08-03 02:02:31 +09:00
Noah 3d5ea1b38d Merge pull request #2060 from skinny121/zlib_decompress
Fix zlib decompression
2020-08-02 09:48:47 -05:00
Yi Hyunjoon d9f507e4a3 Add target_is_directory parameter for symlink function 2020-08-02 17:52:37 +09: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
Jeong YunWon caf419a08e Merge pull request #2058 from tobark/test_repl
Copy test_repl.py from CPython 3.8.3
2020-08-02 16:13:51 +09:00
lynskylate 31061b0464 Optimize code 2020-08-02 15:11:08 +08:00
Jeong YunWon 23cbf06ab8 Merge pull request #2057 from BasixKOR/os-chmod-win
Implement os.chmod on Windows
2020-08-02 14:51:53 +09:00
Yi Hyunjoon ad7f171998 Copy test_repl.py from CPython 3.8.3 2020-08-02 14:07:16 +09:00
Basix 43e6837ddb Rename os_chmod to chmod 2020-08-02 14:01:55 +09:00
Basix 639d21acc9 Implement os.chmod on Windows 2020-08-02 13:44:42 +09:00
Jeong YunWon b14d2772cb Merge pull request #2053 from skinny121/format_field_path
Add support for indexing and attribute access inside format strings
2020-08-02 13:27:16 +09:00
lynskylate 7e69e5ef2c Fix scope change 2020-08-02 03:43:19 +08:00
Ben Lewis 928bca88c6 Code review changes. 2020-08-02 07:37:47 +12:00
Ben Lewis e9a2944138 Fix clippy warnings 2020-08-02 07:22:05 +12:00
Ben Lewis 1c18d99044 Run rustfmt 2020-08-02 07:22:05 +12:00
Ben Lewis 058e73a376 Fix compilation of rust unit tests. 2020-08-02 07:22:05 +12: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
Ben Lewis 8ae65dad76 Fix bug in format auto spec indexing. 2020-08-02 07:22:05 +12:00
Ben Lewis e90e2bfc6e Implement string module. 2020-08-02 07:22:05 +12:00
Ben Lewis c4ddff84ce Implement "{x.attr}".format(...). 2020-08-02 07:22:05 +12:00
lynskylate 07476a24fc Fix is namespace 2020-08-02 02:52:07 +08:00
lynskylate 7d8ab3dda7 Merge remote-tracking branch 'origin/master' into feature-symtable 2020-08-02 02:31:09 +08:00
Jeong YunWon 0a8df91274 Merge pull request #2048 from BasixKOR/os-waitpid-windows
Implement os.waitpid on Windows
2020-08-02 00:41:15 +09:00
Jeong YunWon 55e97af2f4 Merge pull request #2054 from BolunThompson/str_dis
Change dis.dis to take strings to decompile
2020-08-02 00:40:57 +09:00
Basix cf9370a240 Implement os.waitpid on Windows 2020-08-02 00:17:50 +09:00
Jeong YunWon 8dccb60419 Merge pull request #2041 from youknowone/os-module
Reorganize os module
2020-08-01 23:59:11 +09: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 33808e623c Added support for strings to dis.dis
Currently, the dis module's dis function only accepts functions tp
decompile. This adds support for disassembling strings. It does this by
compiling the string, then disassembling compiled output.
2020-08-01 07:21:28 -07:00
Noah b31dd64434 Merge pull request #2049 from BasixKOR/msvcrt-undocumented
Implement msvcrt.SetErrorMode
2020-08-01 00:35:07 -05:00
Noah a0e940f839 Merge pull request #2051 from BolunThompson/stderr_exceptions
Write exceptions to stderr instead of stdout
2020-08-01 00:28:11 -05:00
Noah 3e30f83af6 Merge pull request #2052 from BolunThompson/venv
Add venv module
2020-07-31 23:41:09 -05:00