Commit Graph

8004 Commits

Author SHA1 Message Date
Padraic Fanning
c9ee5ce879 Mark erroring/failing tests 2021-04-14 19:04:12 -04:00
Padraic Fanning
2d41ad2d9f Add test_iterlen from CPython 3.8 2021-04-14 19:04:12 -04:00
Noah
763c18d8aa Merge pull request #2544 from RustPython/coolreader18/misc-fixes
Misc fixes related to IPython
2021-04-14 15:14:54 -05:00
Jeong YunWon
204d1f9487 Merge pull request #2534 from RustPython/dummy_threading
Add dummy_threading from CPython 3.8.9
2021-04-15 02:56:53 +09:00
Jeong YunWon
5fa2483ace Merge pull request #2540 from RustPython/ast-optimization
Add the ast::fold::Fold trait, replacing MapAst
2021-04-15 02:55:41 +09:00
Jeong YunWon
cd1d43e637 Merge pull request #2542 from RustPython/sre-cratesio
Switch to sre-engine from crates.io
2021-04-15 02:53:37 +09:00
Noah
f892b06c3e Switch to sre-engine from crates.io 2021-04-13 10:40:15 -05:00
Noah
0ccc263e2f Allow clippy::upper_case_acronyms for sre-engine's constants 2021-04-13 10:40:13 -05:00
Noah
9d7021c4ff Merge pull request #2548 from deantvv/os-symlink
Fix os.symlink 3rd argument
2021-04-12 09:06:26 -05:00
Dean Li
89d0d5a63d os: remove symlink 3rd argument restriction 2021-04-12 21:17:04 +08:00
Dean Li
ac93edbee7 os: fix symlink signature to python doc
From python doc,
`os.symlink(src, dst, target_is_directory=False, *, dir_fd=None)`
which means that `target_is_directory` is both a positional and keyword argument.
2021-04-12 06:43:51 +08:00
Noah
c84eb2a801 Copy test_defaultdict from CPython 3.8 2021-04-11 17:38:45 -05:00
Noah
3c3801bbe4 Improve defaultdict some more 2021-04-11 17:38:44 -05:00
Noah
501c555c54 Unskip tests 2021-04-11 17:38:44 -05:00
Noah
1b3408f00d Fix defaultdict 2021-04-11 17:38:44 -05:00
Noah
fd587bd5fe Standardize panicking within frame 2021-04-11 17:38:44 -05:00
Noah
21e6910e1d Misc wrong behavior for function props, module.__init__, type.getattro 2021-04-11 17:38:44 -05:00
Noah
4129f0c5c0 Fix async for compilation 2021-04-11 17:38:44 -05:00
Noah
235074faf2 Fully implement SNI in _ssl 2021-04-11 17:38:44 -05:00
Noah
5239e82f0b Add pty.py and tty.py from CPython 3.8 2021-04-11 17:38:44 -05:00
Noah
3db00be5f3 Add termios module 2021-04-11 17:38:44 -05:00
Noah
c2345698ba Add fileno() to IOBase 2021-04-11 17:38:44 -05:00
Noah
89ef71a83a Fix tab completion for classes 2021-04-11 17:38:44 -05:00
Noah
044f9c1a99 Add line_buffering arg to TextIOWrapper 2021-04-11 17:38:44 -05:00
Noah
80249debe1 Add tokenize.py + update token.py to versions from CPython 3.8 2021-04-11 17:38:44 -05:00
Noah
0056cbc880 Remove builtin tokenize 2021-04-11 17:38:44 -05:00
Noah
97f2da7778 Don't panic on invalid utf8 compile(), add __get__/__delete__ to getset/property 2021-04-11 17:38:43 -05:00
Noah
730f37c91a Fix path_from_fd 2021-04-11 13:21:16 -05:00
Noah
8d68e17680 Merge pull request #2541 from RustPython/coolreader18/try-microbenchmarks-again
Optimize(?) microbenchmarks some more
2021-04-09 14:07:24 -05:00
Noah
f9555fd75d Fix getrandbits for k>32 2021-04-07 10:52:40 -05:00
Noah
b870fbef5d Merge pull request #2538 from deantvv/os-fwalk
os: Add support for fd and dir_fd in `listdir`, `stat`, `fstat`
2021-04-07 10:41:36 -05:00
Dean Li
b065c059d2 os: Don't consume File in path_from_fd 2021-04-07 22:40:06 +08:00
Noah
e6b5219393 Fix remaining test_random overflows 2021-04-05 23:15:25 -05:00
Noah
d7d62bfde0 Fix nested folding 2021-04-05 10:47:47 -05:00
Noah
db6fa17ffe Don't recompile CPython microbenchmarks every time 2021-04-05 09:49:16 -05:00
Noah
0a4141c778 Add an ast optimizer 2021-04-05 09:46:30 -05:00
Dean Li
5dae7aacda Remove vm in path_from_fd 2021-04-05 11:13:39 +08:00
Dean Li
84e1cf87ab Extract path_from_fd from make_path and listdir 2021-04-05 10:09:12 +08:00
Noah
d07dca789f Add the ast::fold::Fold trait, replacing MapAst 2021-04-04 17:52:19 -05:00
Noah
3b1e8bccfd Merge pull request #2539 from deantvv/detect_environment
Add os in detect requires environment script
2021-04-04 11:59:24 -05:00
Dean Li
7155decd1f Add os in detect requires environment script 2021-04-04 22:45:15 +08:00
Dean Li
204dccc477 os: Add support_fd for listdir
Use same approach as make_path to add support_fd for `listdir`

After this patch, `os.fwalk` is available.
Noted that, test coverage doesn't increase due to the lack of 3rd argument in `os.symlink`.
2021-04-04 22:34:24 +08:00
Dean Li
a2b97f0f96 os: update support features for stat and fstat 2021-04-04 22:34:24 +08:00
Dean Li
7a890256aa Fix skip condition for test_fd 2021-04-04 22:34:24 +08:00
Noah
e9aa81b003 Merge pull request #2537 from RustPython/try-fix-cron-2
Try fix cron-ci 2
2021-04-03 20:56:16 -05:00
Noah
84ca512b0a Update lock_api to crates.io 0.4.3 2021-04-03 20:55:39 -05:00
Noah
286c784bea Fix overflow in _random 2021-04-03 16:40:40 -05:00
Noah
31721c9d38 Try building benchmarks before running cargo criterion 2021-04-03 16:36:40 -05:00
Noah
68b219ce2f Add rustyline to redox patches 2021-04-03 16:34:55 -05:00
Noah
b47ed5923d Merge pull request #2536 from RustPython/fix-cron-benchmarks
Try running cron-ci benchmarks with cargo-criterion
2021-04-02 21:04:47 -05:00