Snowapril
aa0353a501
Fix best_base to select proper base class ( #5324 )
...
* add __basicsize__ getter
* modify best_base function to get proper base
* inherit basicsize from the base type
---------
Signed-off-by: snowapril <sinjihng@gmail.com >
2024-05-19 15:48:56 +09:00
hydrogen602
61feb43aba
test_builtin.py: test_type_qualname fix
2024-05-13 14:18:18 +09:00
hydrogen602
af8bed6d3f
filter out doc strings with opt level 2
2024-04-25 16:11:04 +09:00
Jonathan Rotter
3313fdeb32
test_builtin.py test_compile unit test fix ( #5251 )
...
* compile accepts memoryview now
* Update test_compile to what it is in CPython3.12
* compile optimize flag
* added undocumented flags to flag validator
2024-04-23 14:07:02 +09:00
Jeong, YunWon
49cfcd817d
remove some skipIf and enable shutil CI for windows ( #5235 )
...
* mark failing shtuil tests in windows
* unsetenv raise more informed error
* Remove a few skipIf for windows
2024-04-20 03:00:27 +09:00
Moreal
21c5eae717
Add testcase for __ne__ method
2024-04-14 13:07:13 +09:00
Ankit Kumar Pandey
058f8c5500
Add fork support functions ( #4972 )
2023-06-01 15:29:16 +09:00
Ankit Kumar Pandey
322aa6887a
add support for os.fork and related functions ( #4877 )
2023-04-25 02:39:54 +09:00
Jaeyoung Ahn
096a3dc645
Fix builtins (has,get,set)attr type error messages ( #4776 )
2023-03-27 15:22:11 +09:00
JaeyoungAhn
44da572893
uncomment annotation
2023-03-25 22:19:15 +09:00
JaeyoungAhn
f750c0ca06
added back the skipIf for windows
2023-03-25 22:13:50 +09:00
JaeyoungAhn
0873e451a8
update test_builtin.py from cpython v3.11.2
2023-03-25 20:30:40 +09:00
JaeyoungAhn
0eea760443
Update test_builtin.py from CPython v3.11.2
2023-03-25 20:17:27 +09:00
yt2b
42e6eecf7f
Remove the decorator
2022-12-28 22:18:21 +09:00
Devon Hollowood
052b87b6e7
Fix compatibility bug for min/max builtins
...
This was as simple as fixing the error messages produced when zero
arguments are passed.
2022-10-19 22:34:15 -07:00
Gyubong
e9970edd77
Add built-in breakpoint function ( #4122 )
2022-08-23 21:45:01 +09:00
Jeong Yunwon
3d27f163e4
adjust failing markers for test_{builtin,decimal,float,range}
2022-07-18 04:38:26 +09:00
CPython developers
33690be35b
Update tests from CPython 3.10.5
2022-07-18 04:07:35 +09:00
Jeong YunWon
bd4f7ab3f9
Merge pull request #3734 from gnsxun/map-mod
...
Add map.reduce()
2022-05-22 13:52:54 +09:00
gnsxun
d1f22fe4c3
delete expectedFailtures
2022-05-22 12:40:57 +09:00
Lithium
53185cdfb8
Fixed test_bytearray_translate Error ( #3730 )
2022-05-22 10:57:12 +09:00
Hyun Park
dfa4bdc695
add filter.__reduce__ ( #3732 )
2022-05-21 19:08:20 +09:00
Moreal
d6236dcdcc
Unmark correct tests
2022-04-24 05:31:01 +09:00
Dean Li
29c953d9a6
test: update test.support and test_io to 3.10
...
Initially this is only meant to be a small update for `test_io.py`.
But it turns out that `test.support` need a lot of cleanup especially
for `test.support.warnings_helper`.
2022-04-18 22:50:55 +08:00
Daniel Watkins
2960ebc0d1
test/test_builtin.py: run most of test_type_name
...
The remaining failures are due to what appears to be a fundamental
difference between how RustPython and CPython handle surrogate
characters/codepoints-which-aren't-characters. They are wrapped with
`self.assertRaises(AssertionError)` so we will notice once they start
passing.
https://github.com/RustPython/RustPython/issues/935 is most likely
related.
2022-04-16 00:38:12 +09:00
Dean Li
5ee4fb899b
test: use os_helper
2021-11-28 20:51:32 +08:00
Jeong YunWon
913b78ca44
Revert "Merge pull request #3433 from deantvv/test-update"
...
This reverts commit 9fa5c5ac66 , reversing
changes made to e7fa32c687 .
2021-11-17 17:06:51 +09:00
Dean Li
49a5805d11
test: use os_helper
2021-11-13 02:18:33 +00:00
jfh
dce45825ae
Allow any mapping for locals.
2021-10-15 17:34:52 +03:00
snowapril
30a37b5baf
remove decorator on unexpected success test
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-06 20:25:10 +09:00
snowapril
53e8c77c3b
add zip related tests from cpython 3.10
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-06 20:25:10 +09:00
Aphek
1ff85118fc
Fix test_chr by raising a ValueError on chr(-1) instead of OverflowError
2021-10-05 12:40:20 -03:00
jfh
b6b10149b7
Fix test_vars in test_builtins.
2021-06-16 19:48:54 +03:00
jfh
63d156097c
Add new and bool for NotImplemented.
...
New simply returns the singleton. While `bool(NotImplemented)` already
returned `True`, it is added since it will need to raise a warning in
the future.
2021-06-16 12:07:48 +03:00
Padraic Fanning
5f821269a6
Explain TestBreakpoint skip
2021-02-07 15:49:41 -05:00
Noah
ba300c75ab
Update pow tests to 3.8 version
2021-01-26 10:30:09 -06:00
Noah
7c58f4a0c8
Fast locals part 3
2020-12-05 16:36:35 -06:00
Noah
93ec575423
Merge pull request #2341 from carbotanium/test
...
Change sum and round to take keywords
2020-11-24 16:20:18 -06:00
carbotaniuman
d76cb3b365
Fix float power and complex division
2020-11-16 13:49:16 +09:00
Noah
e06254ab8e
Merge pull request #2328 from carbotaniuman/fix-min
...
Fix min test case by doing mroe validation
2020-11-14 21:34:54 -06:00
Jeong YunWon
02c05cc217
unksip test_builtin.py
2020-11-12 11:30:33 +09:00
carbotaniuman
49b5d37905
Fix min test case by doing mroe validation
2020-11-11 16:27:02 -06:00
Noah
1149de294f
Fix max+test_max
2020-08-26 22:33:11 -05:00
hyperbora
e9ee1ba4a0
Corrected the problem of mishandling optional kwarg in max function
2020-08-24 01:01:41 +09:00
hyperbora
e7eab050f4
Fix problems with different hash values for str and bytes
2020-08-09 16:09:46 +09:00
hyperbora
ced829f655
Fix problem that cannot check overflow in len function.
2020-08-08 23:05:21 +09:00
hyperbora
19326d8411
fix a divmod bug ( #2025 )
2020-07-26 21:37:49 +09:00
Aviv Palivoda
9c424c7c82
Revert import decimal comment out
2020-03-06 22:10:02 +02:00
Aviv Palivoda
76569485c0
Skip test_round
2020-03-06 14:56:49 +02:00
Aviv Palivoda
ef2721de8b
Mark unsupported tests
2020-03-06 10:46:29 +02:00