Commit Graph

8346 Commits

Author SHA1 Message Date
Padraic Fanning
ea98d23d35 Mark erroring/failing tests 2021-05-20 19:54:22 -04:00
Padraic Fanning
53afbd6a9e Add test_sysconfig from CPython 3.8 2021-05-20 19:54:21 -04:00
Noah
58fb28a870 Don't use crate::pyobject:: in codecs modules 2021-05-20 18:45:49 -05:00
Jeong YunWon
a66d00be39 Merge pull request #2662 from RustPython/flatten-pyobject-module
Flatten pyobject module into the root of the crate, don't require BorrowValue everywhere
2021-05-21 08:30:49 +09:00
Noah
fbbe4a68d2 Rename borrow_list to borrow_vec 2021-05-20 17:47:17 -05:00
Noah
27ee7e12bf Remove BorrowValue fully 2021-05-20 17:23:37 -05:00
Noah
0524f38028 Merge pull request #2651 from rahul-kumi/patch-1
Correct documentation link
2021-05-20 10:32:24 -05:00
Noah
3d9812e748 Remove remaining borrow_value() uses 2021-05-20 10:30:42 -05:00
Noah
46e94b5720 Replace PyTuple.borrow_value() with .as_slice() 2021-05-20 10:29:49 -05:00
Noah
1eae2c8a12 Replace bufferish-types.borrow_value() with direct getters 2021-05-20 10:29:48 -05:00
Noah
d6e79fbbbf Replace PyInt.borrow_value() with .as_bigint() 2021-05-20 10:29:48 -05:00
Noah
516eead348 Replace PyStr.borrow_value() with .as_str() 2021-05-20 10:29:48 -05:00
Noah
61fd3bbc1c Use BorrowValue less 2021-05-20 10:29:48 -05:00
Noah
376ce87b76 Move Either to crate::utils 2021-05-20 10:29:48 -05:00
Rahul Kumaresan
eef4c47269 fix markup 2021-05-20 20:56:56 +05:30
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Rahul Kumaresan
1dfc7832f3 add user guide link in README 2021-05-20 20:27:32 +05:30
Noah
3f68a23963 Merge pull request #2646 from RustPython/coolreader18/native-codecs
Implement _codecs (but not encoding/decoding) as a Rust module
2021-05-20 09:55:45 -05:00
Noah
8b56b127aa Remove CodecRegistry.lookup_opt 2021-05-20 09:23:06 -05:00
Noah
fd2ceeb3e7 Improve normalize_encoding_name
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2021-05-20 09:15:36 -05:00
Jeong YunWon
110a31ca5a Merge pull request #2656 from RustPython/fix-redox
Fix errors and (some) warnings on redox
2021-05-20 21:55:44 +09:00
Jeong YunWon
2ef9b9d26e Merge pull request #2660 from fanninpm/test-sys-settrace
Add test_sys_settrace from CPython 3.8
2021-05-20 21:52:27 +09:00
Jeong YunWon
d6e2ae3e0c Merge pull request #2657 from fanninpm/test-sys-setprofile
Add test_sys_setprofile from CPython 3.8
2021-05-20 21:51:52 +09:00
Noah
c0f1da8d8f Make _codecs a native module 2021-05-18 23:43:13 -05:00
Padraic Fanning
822b3c6fd6 Mark erroring/failing tests 2021-05-17 22:37:09 -04:00
Padraic Fanning
500a3ecc42 Skip tests for potential spurious errors 2021-05-17 22:37:09 -04:00
Padraic Fanning
d94e473840 Skip test for infinite looping 2021-05-17 22:37:09 -04:00
Padraic Fanning
df42f3e86d Add test_sys_settrace from CPython 3.8 2021-05-17 22:37:08 -04:00
Noah
fb6c0454da Merge pull request #2653 from fanninpm/test-syntax
Add test_syntax from CPython 3.8
2021-05-17 10:23:08 -05:00
Padraic Fanning
930fbb0df6 Mark erroring tests 2021-05-16 13:50:34 -04:00
Padraic Fanning
73afb9d267 Add test_sys_setprofile from CPython 3.8 2021-05-16 13:50:34 -04:00
Padraic Fanning
55d81fe40f Bypass doctests (causing CI to time out) 2021-05-16 13:48:27 -04:00
Padraic Fanning
2187e93032 Mark failing tests 2021-05-16 13:23:03 -04:00
Padraic Fanning
3298d88688 Add test_syntax from CPython 3.8 2021-05-16 13:23:02 -04:00
Noah
2bcf7d4d5b Merge pull request #2649 from deantvv/os-direntry-fix
os: Fix `DirEntry` is_file and is_dir function
2021-05-16 00:10:29 -05:00
Noah
855925ef56 Fix errors and (some) warnings on redox 2021-05-16 00:09:38 -05:00
Dean Li
15427a26a5 os: Fix DirEntry is_file and is_dir function
Change `perform_on_metadata` to fit python document and tests.

From python document ->
> Return True if this entry is a directory or a symbolic link pointing to a directory;
> return False if the entry is or points to any other kind of file, or if it doesn’t exist anymore.
> ...
> This method can raise OSError, such as PermissionError, but FileNotFoundError is caught and not raised.
> - [python doc](https://docs.python.org/3/library/os.html?highlight=direntry#os.DirEntry.is_dir)
2021-05-16 12:36:17 +08:00
Noah
d668624a8a Merge pull request #2655 from RustPython/cache-direntry-stat
Cache stat result in DirEntry to fix spurious CI failures
2021-05-15 23:11:20 -05:00
Noah
a5f1e74e6f Cache stat result in DirEntry to fix spurious CI failures 2021-05-15 22:10:06 -05:00
Noah
ec0b7e6cc3 Merge pull request #2652 from fanninpm/test-sundry
Add test_sundry from CPython 3.8
2021-05-15 22:06:24 -05:00
Padraic Fanning
3c3504357e Mark erroring test on Windows 2021-05-15 20:35:23 -04:00
Padraic Fanning
dd2b276a1d Add test_sundry from CPython 3.8 2021-05-15 20:35:22 -04:00
Noah
ae4912025b Fix builtinfunc pickling 2021-05-15 19:33:07 -05:00
Noah
36c0f5a3ee Merge pull request #2654 from fanninpm/fix-os-subprocess-tests
Fix CI failures with test_subprocess and/or test_os
2021-05-15 19:32:56 -05:00
Padraic Fanning
1a4fb31cd2 Mark erroring/failing tests on Windows 2021-05-15 19:14:08 -04:00
Padraic Fanning
daeb787528 Mark erroring test(s) on non-Windows systems 2021-05-15 19:10:51 -04:00
Padraic Fanning
be24b7a51c Unmark unexpected successes 2021-05-15 18:24:07 -04:00
Noah
11ea6cb421 Merge pull request #2650 from RustPython/coolreader18/fix-pip
Fix install-pip regressions
2021-05-15 15:14:22 -05:00
Padraic Fanning
b9eee35ad2 Mark erroring test on Windows 2021-05-15 16:03:01 -04:00
Padraic Fanning
4444de71d5 Skip tests that take too long in test_subprocess 2021-05-15 15:59:21 -04:00