Commit Graph

5964 Commits

Author SHA1 Message Date
Depasse Arthur
792c40badc adding lchown function as a wrapper around chown 2020-07-24 16:38:07 +02:00
Depasse Arthur
12dee0d55a Adding base snippets tests for os.chown 2020-07-24 16:18:48 +02:00
Depasse Arthur
dfffca4696 Running flake8 linter on test file 2020-07-24 16:18:48 +02:00
Depasse Arthur
6d541634c5 setting proper values for supports_{fd,dir_fd,follow_symlinks} sets for chown function 2020-07-24 16:18:48 +02:00
Depasse Arthur
eaa4a3bfd4 fixing clippy lint 2020-07-24 16:18:48 +02:00
Depasse Arthur
308468f1d5 First implementation of chown for the os module 2020-07-24 16:18:48 +02:00
Noah
c65ab9f5b8 Merge pull request #2022 from minoring/test-cmd
Add CPython 3.83 test test_cmd.py
2020-07-24 09:34:10 -04:00
minoring
f65765fcab Add CPython 3.83 test test_cmd.py
All tests are passed.
2020-07-24 19:46:18 +09:00
Jeong YunWon
87e500a07b Merge pull request #2021 from RustPython/fix-mingw
Fix compilation on mingw/msys
2020-07-23 02:55:23 +09:00
Jeong YunWon
3f3a83c687 Merge pull request #1883 from youknowone/share-splitlines
Share str.splitlines and bytes.splitlines implementaion
2020-07-22 14:13:18 +09:00
Jeong YunWon
eb25ce6f2c Merge pull request #2016 from youknowone/sequence
Simplify SimpleSeq impls and remove duplicated length check for SeqMul
2020-07-22 14:12:58 +09:00
Noah
d52309255e Fix compilation on mingw/msys 2020-07-21 17:00:12 -05:00
Jeong YunWon
93c80ebe7d Remove redundant clone 2020-07-22 03:36:16 +09:00
Jeong YunWon
7f7e0ac770 unify sequence::cmp 2020-07-22 03:36:09 +09:00
Jeong YunWon
b677b88bdd sequence::cmp take DynPyIter instead of SimpleSeq
to avoid duplicated code generation for Box operation
2020-07-21 21:48:46 +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
dd9eb28eb8 formatting 2020-07-20 20:14:12 -07:00
Bolun Thompson
3f7ad38458 Update vm/src/obj/objtype.rs
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2020-07-20 20:14:12 -07:00
Bolun Thompson
94bafbb1ea Refactored unecessary code out and calls __get__ descriptor when needed 2020-07-20 20:14:12 -07:00
Bolun Thompson
8cccf13c80 Implemented kwargs on __init_subclass__ 2020-07-20 20:14:12 -07: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
Bolun Thompson
05bd893e3d Partial support for __init_subclass__ dunder method.
This doesn't support passing kwargs to __init_subclass__.
2020-07-20 12:47:03 -07:00
Jeong YunWon
eedc37efa4 Merge pull request #2015 from hyperbora/more-tests
Add CPython urlparse test
2020-07-21 03:50:46 +09:00
hyperbora
91e8695c93 Mark unsupported tests 2020-07-20 20:51:11 +09:00
Jeong YunWon
826dc900f8 SeqMul check non-zero length only once 2020-07-20 05:57:09 +09:00
Jeong YunWon
f40b19927f Simplify SimpleSeq 2020-07-20 05:57:06 +09:00
Jeong YunWon
e674b9f99e Use .to_usize().unwrap_or(0) rather than .max(0) 2020-07-20 05:49:59 +09:00
Jeong YunWon
5cfdf1db2c pystr::py_splitlines 2020-07-20 02:52:11 +09:00
Jeong YunWon
62277faa44 Share str.splitlines and bytes.splitlines implementaion 2020-07-20 01:18:43 +09:00
Jeong YunWon
5d1b821e2a Merge pull request #1975 from RustPython/dev-opt-level
Build dependencies with opt-level 3 always
2020-07-20 00:32:55 +09:00
Jeong YunWon
7629a2d202 Run rust&python ilnt in same flow 2020-07-19 23:44:08 +09:00
Jeong YunWon
b132de110f Fix Cargo.lock and add dependency for wasm 2020-07-19 23:44:08 +09:00
hyperbora
4387d96ffe add test_urlparse from CPython 3.8.4 2020-07-19 22:12:10 +09:00
Jeong YunWon
9dcca68088 Merge pull request #2012 from clemado1/develop
Implement remove method of array
2020-07-19 17:44:01 +09:00
clemado1
53a116f9f1 Implement remove method of array 2020-07-19 16:31:07 +09:00
Jeong YunWon
8bee6203d0 Build dependencies with opt-level 3 always 2020-07-19 03:27:54 +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
Jeong YunWon
d71dc69577 Merge pull request #2007 from youknowone/test-zlib
test_zlib.py
2020-07-19 02:54:56 +09:00
Aviv Palivoda
4ba6b476aa Wrap unlock in unsfae 2020-07-18 17:26:05 +03:00
Aviv Palivoda
5b51495119 Merge pull request #2011 from yanganto/issue-1555
handle nesting brackets in the spec of format
2020-07-18 17:08:47 +03:00
Aviv Palivoda
fa76d10489 Skip macos failing test 2020-07-18 17:04:35 +03:00
Aviv Palivoda
eba1d722ea Remove global import lock in WASM 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
Aviv Palivoda
f970f4fabc Add global import lock 2020-07-18 17:04:35 +03:00