Commit Graph

1368 Commits

Author SHA1 Message Date
Noah
c31b3b2af9 Use the first arg of StopIteration as yield from return value 2019-10-15 13:58:08 -05:00
ChJR
b2126829e9 Add repeat count support to struct.pack() (#1518)
* Add struct.pack() repeat count test

* Add repeat count support to struct.pack()

* Refactor parse_format_codes()

* Refactor parse_format_codes() again
2019-10-15 19:25:51 +02:00
Windel Bouwman
67f005e9f7 Merge pull request #1529 from youknowone/fix-asserts
Fix testutils.assert_* and pow test
2019-10-14 20:34:06 +02:00
Windel Bouwman
6f624c6f95 Merge pull request #1521 from janrg/round_to_n_decimals
Implement round(number, digits) for digits != 0
2019-10-14 20:19:40 +02:00
Windel Bouwman
b1684b2861 Merge pull request #1530 from youknowone/test-names
Rename some test filenames by convention
2019-10-14 20:18:30 +02:00
Windel Bouwman
2205fec2ff Merge pull request #1524 from dan-fritchman/1175-extend-os
Add os.system
2019-10-14 20:15:28 +02:00
Dan Fritchman
8c4a9c6041 Add initial os.system unit tests 2019-10-14 17:55:59 +02:00
janrg
4fd38e6220 Add test snippets, fix rounding for very small numbers 2019-10-14 17:06:07 +02:00
Jeong YunWon
95e8e2f2ce Rename some test filenames by convention 2019-10-14 11:05:18 +09:00
Jeong YunWon
239495f259 Fix testutils.assert_* and pow 2019-10-14 10:48:19 +09:00
kluid
25f656105f Add more test for csv 2019-10-13 17:20:33 +09:00
Seo Sanghyeon
e76edde38e Implement IndentationError 2019-10-12 02:24:12 +09:00
Windel Bouwman
e5c92d6fa2 Merge pull request #1496 from rls1004/issue1404
Implement delattr for type object
2019-10-11 17:44:46 +02:00
Windel Bouwman
cc76649567 Merge pull request #1504 from youknowone/builtin-round
Fix builtin_round with non-int __round__
2019-10-11 17:43:19 +02:00
Windel Bouwman
82e8811fee Merge pull request #1499 from HyeockJinKim/issue1498
Take only numbers after `.`
2019-10-11 17:39:54 +02:00
HyeockJinKim
cb9b9e6320 Add tests for locals 2019-10-11 04:35:47 +09:00
Jeong YunWon
791e598e3d Fix builtin_round with non-int __round__ 2019-10-11 01:17:49 +09:00
Jeong YunWon
dcd1f3138a Use is for bool comparison 2019-10-10 23:11:26 +09:00
Jeong YunWon
1216874c29 Small int cache like cpython 2019-10-10 23:11:26 +09:00
HyeockJinKim
2cd4c95994 Add tests for float 2019-10-10 17:24:14 +09:00
MinJeong Kim
37a3b2c8f0 Implement delattr for type object
Fixed: #1404
2019-10-10 04:24:55 +00:00
Jeong YunWon
72b4965312 Merge pull request #1497 from HyeockJinKim/ne
Add __ne__ methods
2019-10-10 10:59:24 +09:00
HyeockJinKim
37e85df527 Add __ne__ for float
Issue #1442
2019-10-10 03:49:13 +09:00
HyeockJinKim
100416f4f2 Add __eq__, __ne__ of none
Issue #1442
2019-10-10 03:49:09 +09:00
HyeockJinKim
1e8ade7098 Fixed __eq__ and add __ne__ of range
change return type of __eq__ to PyResult
and add __ne__

Issue #1442
2019-10-10 03:49:05 +09:00
Windel Bouwman
6f9aeb03de Merge pull request #1494 from kluid/mod_csv
Added csv module
2019-10-09 12:10:22 +02:00
kluid
076232141e Added test case for csv module 2019-10-09 12:49:32 +09:00
Windel Bouwman
dccc22dbb9 Merge pull request #1493 from HyeockJinKim/issue1490
Fixed to return the mro function
2019-10-08 21:16:33 +02:00
HyeockJinKim
594c3bb97e Add tests for mro 2019-10-09 01:22:48 +09:00
Windel Bouwman
ad8a182a4c Merge pull request #1483 from ChJR/hotfix/SystemExit
Change something related to exit
2019-10-07 19:58:15 +02:00
Windel Bouwman
0f2eddc86e Merge pull request #1487 from HyeockJinKim/issue1482
Fixed __hash__ of range
2019-10-07 19:40:48 +02:00
ChJR
2bc854387f Remove NameError checking from exit.py due to error of flake8 Linting 2019-10-08 01:05:32 +09:00
Jeong YunWon
c0dfb9367c disable some PowTest.powtest for num-bigint bug 2019-10-07 23:30:58 +09:00
Jeong YunWon
eef97a78ca PowTest.powtest from cpython 2019-10-07 23:29:44 +09:00
HyeockJinKim
145ad87b41 Add tests for range's hash 2019-10-07 19:00:55 +09:00
Noah
ae4b68f5ba Merge pull request #1438 from lntuition/fix-byte-like-object
Add logic to check array.array byte like object
2019-10-06 20:33:02 -05:00
Windel Bouwman
09871c03a4 Merge pull request #1467 from youknowone/pow-negative-exp
Fix pow(0, exp) with negative exp to raise ZeroDivisionError
2019-10-06 14:07:54 +02:00
Windel Bouwman
549c95c83f Merge pull request #1344 from youknowone/thread-timeout
_thread.TIMEOUT_MAX
2019-10-06 14:06:41 +02:00
Windel Bouwman
b8582ae7f1 Merge pull request #1484 from lazylife7157/memoryview_construct
Fix #1003 Construct memoryview from bytes-like obejcts
2019-10-06 14:05:27 +02:00
lazylife7157
597453ec45 Add memoryview constructor tests 2019-10-07 02:25:43 +09:00
Windel Bouwman
c2118a6194 Merge pull request #1477 from lazylife7157/recursion_error
Add RecursionError
2019-10-06 14:03:48 +02:00
Jeong YunWon
f221a698eb Merge pull request #1480 from HyeockJinKim/slice_hash
Add __hash__ of slice
2019-10-06 17:28:42 +09:00
ChJR
66bd4021f9 Add some tests to exit.py 2019-10-06 17:01:13 +09:00
HyeockJinKim
9375851fa0 Add tests for slice __hash__ 2019-10-06 16:11:50 +09:00
Jeong YunWon
79e3700477 Merge pull request #1479 from HyeockJinKim/issue1475
Fixed list's __iadd__
2019-10-06 15:46:15 +09:00
HyeockJinKim
56108c1a16 Add tests for list's __iadd__
Add a test for `extend` and `__iadd__` iterable values
2019-10-06 14:38:06 +09:00
Jeong YunWon
84f08c85d9 Merge pull request #1470 from makarchuk/string.__repr__
cpython compatible "".__repr__
2019-10-06 14:32:06 +09:00
Jeong YunWon
98abc916ce Merge pull request #1473 from HyeockJinKim/slice_compare
Add comparison of slice
2019-10-06 14:31:27 +09:00
lazylife7157
2bb1de85ee Add magnitude seperator test 2019-10-06 21:13:01 +09:00
lazylife7157
c80c68cb06 Refine recursion test 2019-10-06 14:03:56 +09:00