Commit Graph

1265 Commits

Author SHA1 Message Date
Marcin Pajkowski
4e86119753 stdlib_os tests: do not remove tmp directory
Implement hack to avoid name collisions
2019-09-25 21:44:28 +02:00
Marcin Pajkowski
5620e7ed15 Create tests for os.scandir 2019-09-25 21:44:28 +02:00
Windel Bouwman
51c3f71eed Merge pull request #1406 from lntuition/fix-1405
Fix int type casting error with negative base value
2019-09-25 17:15:48 +02:00
Hyunji Kim
239115f686 itertools.compress 2019-09-25 22:55:05 +09:00
Sang-Heon Jeon
545e9d39df Fix int type casting error with negative base value
Change base type from u32 to PyIntRef

Fixed: #1405
2019-09-25 01:01:21 +09:00
Daniel Alley
7858fb863a Add additional test snippets for range slicing 2019-09-23 15:46:58 -04:00
johan.park
db10a82cbe Update copysign module of math
- Implement copysign function with test case
- Add constants of NAN, INF, NINF on top of `math_module.py`
2019-09-22 16:12:41 +09:00
HyeockJinKim
38a815073c Add test for range __eq__ 2019-09-21 02:19:45 +09:00
Windel Bouwman
b2b02baad4 Merge pull request #1384 from tsvankay/float_repr
Fix __repr__ return value for -0.0
2019-09-17 19:54:53 +02:00
HyeockJinKim
6f50e4ad3e Add tests for global 2019-09-18 01:57:52 +09:00
tsvankay
5b2158ab18 fixed __repr__ return value for -0.0 2019-09-18 01:03:29 +09:00
Jeong YunWon
758073db07 Add _msg back to assert_raises 2019-09-17 18:52:16 +09:00
Jeong YunWon
dc8057a1c2 Refactor snippets/testutil 2019-09-17 17:37:24 +09:00
coolreader18
a878ffc678 Remove useless_const optimization
There could be jump depending on the Pop being there, and then it
breaks.
2019-09-17 08:04:11 +02:00
Noah
8c411bc2a4 Merge pull request #1381 from HyeockJinKim/range
Fixed calculation for range
2019-09-15 22:33:10 -05:00
HyeockJinKim
c141e6d557 Add tests for range type 2019-09-16 01:23:57 +09:00
Noah
fcd39a3115 Merge pull request #1372 from j30ng/itertools-accumulate
Implement itertools.accumulate
2019-09-14 12:09:04 -05:00
j30ng
708fd9bcfb Implement itertools.accumulate 2019-09-14 01:16:19 +09:00
Windel Bouwman
31d7121af9 Merge pull request #1369 from vazrupe/pos-args-error
Add Positional argument error to LexicalError
2019-09-13 11:07:55 +02:00
HyeonGyu Lee (Vazrupe)
0ab46fd2bd Add Positional argument error to LexicalError
Fixes #1046
2019-09-13 01:46:31 +09:00
Noah
0d1525965c Merge pull request #1366 from HyeockJinKim/issue1365
Fix unsupported operand type of str problem
2019-09-11 17:43:16 -05:00
HyeockJinKim
9a0078214a Add test for str 2019-09-12 06:52:34 +09:00
HyeockJinKim
f8cb4a5690 Add test for nonlocal 2019-09-12 01:14:14 +09:00
Jeong YunWon
65c90ab976 Merge pull request #1343 from vazrupe/add-framework-attr
Add framework attribute in sys module
2019-09-11 03:00:09 +09:00
HyeonGyu Lee (Vazrupe)
1be7cc6308 Add framework attribute in sys module
Fixes #1342
2019-09-10 20:16:11 +09:00
Noah
b7a11dfb67 Merge pull request #1354 from ChJR/feature/__bool__
Improve __bool__
2019-09-09 15:46:56 -05:00
coolreader18
51934e0d7c Add explanation of broken test 2019-09-08 10:09:15 -05:00
ChJR
adc919f6c9 Merge branch 'master' into feature/__bool__ 2019-09-08 16:32:58 +09:00
coolreader18
b797b51369 Fix class scopes by modifying symboltable 2019-09-07 01:29:11 -05:00
coolreader18
ae45a4a3be Fix class vs method scopes 2019-09-05 00:27:16 -05:00
Adam
814260e7e4 Merge pull request #1332 from RustPython/load_global_loading_local
load_global shouldn't load outermost locals.
2019-09-02 10:13:19 +01:00
Adam Kelly
e7ffc9db1d load_global shouldn't load outermost locals. 2019-08-31 15:03:44 +01:00
Jeong YunWon
e9c280368a Fix scan_expression not to mark sequence as Load 2019-08-31 00:25:16 +09:00
Windel Bouwman
78e9f01ad0 Merge pull request #1323 from corona10/dropwhile
itertools.dropwhile: Implement itertools.dropwhile
2019-08-28 13:19:59 +02:00
Dong-hee Na
e1854cec25 itertools.dropwhile: Implement itertools.dropwhile 2019-08-28 19:13:11 +09:00
Windel Bouwman
e9820c1a7b Merge pull request #1322 from corona10/fileio_close_set
fileio: Update closefd, closed when close method is called
2019-08-28 11:22:40 +02:00
Dong-hee Na
1176eac168 filio: Update closefd, closed when close method is called 2019-08-28 10:41:13 +09:00
Windel Bouwman
2ca6e5d399 Implement execution of finally block. Fixes #1306. 2019-08-27 21:16:59 +02:00
lynskylate
b4335dc049 Merge branch 'master' of https://github.com/RustPython/RustPython into extend-socket 2019-08-26 01:07:53 +08:00
Aviv Palivoda
124f16488c Merge pull request #1275 from zsaladin/json_dump
Modify `json.loads` for bytes and bytearray
2019-08-25 18:52:50 +03:00
lynskylate
d58abd3a66 Add timeout test 2019-08-25 22:31:21 +08:00
lynskylate
9677f77360 Merge branch 'master' of https://github.com/RustPython/RustPython into extend-socket 2019-08-25 15:01:21 +08:00
coolreader18
c3f64a3025 Add array tests, array.__eq__, array.__iter__ 2019-08-24 22:28:17 -05:00
Windel Bouwman
89a97b66ad Merge pull request #1290 from mpajkowski/int_fix
Fix panics with int()
2019-08-23 17:12:33 +02:00
Windel Bouwman
bd293fad76 Merge pull request #1303 from youknowone/datetime
Datetime module
2019-08-23 16:53:10 +02:00
lynskylate
a0521bc986 Merge branch 'master' of https://github.com/RustPython/RustPython into extend-socket 2019-08-22 22:22:03 +08:00
Noah
e0de5fc139 Merge pull request #1314 from youknowone/bool-real
bool.real
2019-08-22 09:13:43 -05:00
Jeong YunWon
0327428aa5 bool.real 2019-08-22 13:57:44 +09:00
Tommaso Thea Cioni
d7187d426c Cleaned up two tests. 2019-08-22 03:11:51 +02:00
Marcin Pajkowski
6d618c5e5a Add changes suggested by @seeturtle
+ Add tests covering those changes
2019-08-20 06:11:59 +02:00