Commit Graph

161 Commits

Author SHA1 Message Date
Jeong Yunwon
5380aa1b12 whats_left sort items and skip cpython missing signatures 2022-04-08 17:22:51 +09:00
Dean Li
c5544c2580 test: remove unused import and wrong doc 2022-03-23 21:51:51 +08:00
Jake Armendariz
0dba8701e8 Merged marshaling module 2022-03-16 18:54:47 -07:00
Jake Armendariz
aadaf18219 Marshaling sets, frozen sets, bytearr, and changes to testing 2022-03-16 18:09:33 -07:00
Noa
f04a305ac6 Fix augassign double-loading the container of the target 2022-03-10 13:27:38 -06:00
Jeong YunWon
ef90d09950 Merge pull request #3506 from jakearmendariz/main
Marshaling support for ints, floats, strs, lists, dicts, tuples
2022-02-21 23:45:38 +09:00
Jake Armendariz
502d5c217d Changes to code/style of marshaling module 2022-02-21 02:12:49 -08:00
Jeong YunWon
37e8842ecc Merge pull request #3532 from fanninpm/fix-fstring-format-spec
Fix f-string format spec
2022-02-10 19:31:51 +09:00
Padraic Fanning
022b4b233e Change socket.timeout to be a TimeoutError 2022-02-05 20:44:04 -05:00
Padraic Fanning
d187a20a09 Add Pipfile.lock to extra_tests/.gitignore 2022-02-05 20:44:03 -05:00
Padraic Fanning
eb9c6ca6e9 Remove Pipfile.lock 2022-02-05 20:44:03 -05:00
Padraic Fanning
a936c36707 Add format-spec string test snippets 2022-02-04 14:59:28 -05:00
Moreal
a41d7c5d29 Remove staled comments 2021-11-21 01:19:10 +09:00
rvsampson94
0fe8a06d65 Dict keys isdisjoint 2021-11-20 12:30:22 +09:00
Jeong Yunwon
93a7d59bbb relocate wrongly placed sys test in snippets/stdlib_os.py 2021-11-16 01:23:53 +09:00
Steve Shi
742ea0c4fa Reimpl Buffer Protocol and memoryview support ndarray with shape, stride and suboffset (#3340)
* Fix buffer protocol and memoryview

* Fix io and array the right way to use buffer protocol

* fix rebase

* fix memoryview and introduce VecBuffer

* fix deadlock

* fix memoryview avoid double release buffer

* impl ndim buffer support

* first implement nd array for buffer and memoryview

* fix slice adjust_indices

* fix adjust_indices introduct SaturatedSliceIterator

* fix memoryview cmp

* fix adjust_indices positive_order

* fix bug mark passed test

* fix clippy

* fix set_item_slice deadlock, optimize buffer

* Delete @test_113974_tmp

* Remove vec_buffer_type

* rusty names

* impl memoryview multi index

* add comments

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2021-11-13 07:17:11 +02:00
Daniel Watkins
42186caade extra_tests: test stdlib exception __module__/__name__ 2021-11-02 18:28:02 -04:00
snowapril
f6c2999f07 remove duplicated extra_test
As this extra_test already covered by `test_parameter_chaining` in
`test_genericalias.py`, remove duplicated test

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-31 20:02:10 +09:00
snowapril
795bfeb75d Add extra test for GenericAlias on TypeVar args
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-26 10:15:10 +09:00
jfh
2f3f3f8505 Ignore AttributeError for missing __prepare__. 2021-10-16 20:16:33 +03:00
Steve Shi
723357962a Refactor list avoid duplicate the vec (#3241)
* list count bench
* Refactor list count avoid duplicate the vec
* optimize list count with HEAPTYPE flag
* introduce generic safe iter functions for list
* Refactor list functions (contains, index, remove)
* Refactor list iter functions with const generics
* optimize list with richcompare
* optimize list iter_equal
2021-10-16 13:16:45 +09:00
jfh
37ba1b8a87 Mark internal types as not constructible. 2021-10-14 12:09:31 +03:00
jfh
ff67ad445c Annotate iterators with Unconstructible. 2021-10-14 05:54:26 +03:00
Jim Fasarakis-Hilliard
a81f97dd9e Merge pull request #3280 from DimitrisJim/bad_indexing
Fix deadlocks when slicing mutable sequences.
2021-10-13 08:14:41 +03:00
Aphek
e732669224 Make it possible for rust functions to increase recursion depth (#3252)
Make it possible for rust functions to increase recursion depth
2021-10-13 08:12:12 +03:00
jfh
0539d33ce4 Export saturated index via slicable, use better naming conventions. 2021-10-13 07:05:26 +03:00
jfh
72ad7120ab Saturate slice before getting a lock on the underlying collection. 2021-10-12 10:00:50 +03:00
Jack-R-lantern
ab43f91fcb Add contains in dict_keys 2021-10-12 01:19:31 +09:00
Kangzhi Shi
ea69dc53d2 remove test that fail on CPython 2021-10-10 14:48:30 +02:00
Kangzhi Shi
cbd7c59329 Fix unicode array pickling 2021-10-10 14:43:34 +02:00
Jack-R-lantern
aef89ceaec Add __contains__ in dict_items 2021-10-09 17:32:03 +09:00
Jack-R-lantern
d59d5e17e6 remove file 2021-10-09 16:54:32 +09:00
Jack-R-lantern
d925880de8 Add testcase 2021-10-09 16:47:54 +09:00
Jack-R-lantern
ab3145eb1d pull main branch & merge 2021-10-09 16:08:10 +09:00
jfh
eb943a11be Move not_impl to extra_tests. 2021-10-08 00:14:40 +03:00
jfh
2d36e1dc2d Ignore CPython specific testing/template modules. [skip ci] 2021-10-07 22:50:07 +03:00
Jeong YunWon
d49ab19fab Merge pull request #3209 from osman-turan/main
Add missing randbytes method on random
2021-10-07 01:14:22 +09:00
frazar
2c09dd8535 Align test outcomes with Python 3.9.7 (#3230) 2021-10-06 18:23:02 +03:00
Osman Turan
0f6a773187 Merge branch 'RustPython:main' into main 2021-10-06 17:32:18 +03:00
Alex Muscar
cd4216097f fix: __repr__ use collection subclass name
Addresses: https://github.com/RustPython/RustPython/issues/3217

This patch changes the `set`, `frozenset`, `deque` and `bytearray`
collections to use the subclass name in `__repr__`, if they are
subclassed.
2021-10-06 10:01:36 +01:00
Jeong YunWon
0c862f740b disable failing test 2021-10-03 23:24:59 +09:00
Jeong YunWon
68e159e6da disable wrong test suite 2021-10-03 23:24:59 +09:00
Osman Turan
6fc278f19f Add tests for random.randbytes 2021-10-03 14:51:09 +03:00
Kangzhi Shi
87edbfece7 fix str iterator position 2021-10-01 16:53:47 +02:00
Jeong YunWon
ff1129adb7 PyIterReturn for StopIteration
Same as ArithmaticValue for NotImplemented
2021-10-01 22:33:57 +09:00
jfh
8d8e138f0a fix issue 3154 2021-09-27 22:52:35 +03:00
Jeong YunWon
064bfc5a9d cpython docs database for class 2021-09-22 10:32:23 +09:00
Jeong YunWon
c2b4755af4 CPython docs database for module items 2021-09-22 04:25:41 +09:00
Padraic Fanning
0ea56025ec Replace master with main
Fixes #3067
2021-09-15 17:54:54 -04:00
Nikita Sobolev
b723bbfbb5 All exceptions are now modified with extend_exception! macro 2021-09-16 03:17:19 +09:00