Commit Graph

1366 Commits

Author SHA1 Message Date
janczer
24176f7bbb Add more test for bytearray.pop and fix the panic message 2019-02-20 06:58:43 +01:00
janczer
bfdb82b5c1 Add pop to bytearray 2019-02-20 06:50:33 +01:00
Joey
53bcd04f8a Merge pull request #499 from RustPython/break-from-nested-for-loops
Fix infinite loop when breaking from nested for loop
2019-02-19 18:33:11 -08:00
Joey
7c06cedf48 Merge pull request #504 from palaviv/fix-key-error
Add KeyError to builtins
2019-02-19 18:24:00 -08:00
Joey
cd8c1efb6b Merge pull request #494 from janczer/add_clear_dict_bytes
Add dict.clear and bytes.clear
2019-02-19 15:46:32 -08:00
Aviv Palivoda
218cec98cb Add KeyError to builtins 2019-02-19 21:38:39 +02:00
janczer
2963dd5b66 Change error to panic in bytearray.clear 2019-02-19 20:38:38 +01:00
Windel Bouwman
ac95b61e3e Merge pull request #496 from adrian17/arg_check_comments
Document arg_check! macro a bit
2019-02-19 17:42:47 +01:00
janczer
d5c91a8de0 Move clear method from bytes to bytearray 2019-02-19 07:11:13 +01:00
Joey Hain
7965a63ba9 Fix infinite loop when breaking from nested for loop 2019-02-18 18:07:35 -08:00
Adrian Wielgosik
e016b68552 Document arg_check! macro a bit 2019-02-18 19:59:28 +01:00
janczer
58369b6fbc Delete unnessesary code from dict.clear 2019-02-18 18:45:49 +01:00
janczer
85110f6fbf Add dict.clear and bytes.clear 2019-02-18 18:21:39 +01:00
Windel Bouwman
fcea8455fa Merge pull request #473 from janczer/add_list_copy
Add copy method to set object
2019-02-18 10:50:20 +01:00
Windel Bouwman
16832c8f8c Merge pull request #479 from calixteman/fix_equality
Fix issue with equality
2019-02-18 10:49:36 +01:00
Windel Bouwman
43d9fc5dc0 Merge branch 'master' into fix_equality 2019-02-18 08:12:12 +01:00
Windel Bouwman
a47e979f29 Merge branch 'master' into add_list_copy 2019-02-18 08:08:31 +01:00
Windel Bouwman
70d5cdbe3e Merge pull request #492 from OddCoincidence/inplace-ops
Support magic methods for in-place operations
2019-02-18 08:05:59 +01:00
Windel Bouwman
71f32ee9b0 Merge pull request #491 from calixteman/fix_ccov_badge
Fix typo in codecov.io badge
2019-02-18 07:58:32 +01:00
Joey Hain
ddc7da4a9d Add test for in-place ops 2019-02-17 18:17:26 -08:00
Joey Hain
afabde26d5 coverage: try deleting old gcda files 2019-02-17 17:18:47 -08:00
Joey Hain
7abaea556a Micro-optimize list.__iadd__ 2019-02-17 14:30:38 -08:00
Joey Hain
dcb29ab1f0 Add list.__iadd__ 2019-02-17 10:54:25 -08:00
Joey Hain
b310d5e24b Use i-methods for in-place operations 2019-02-17 10:47:58 -08:00
Joey Hain
fe3f45f655 Implement remaining binop reverse fallbacks 2019-02-17 09:26:31 -08:00
Calixte Denizet
b61730972e Fix typo in codecov.io badge 2019-02-17 17:07:49 +01:00
Windel Bouwman
1af9cc0173 Merge pull request #489 from OddCoincidence/decorator-paths
Allow attributes to be used as decorators
2019-02-17 08:01:25 +01:00
Windel Bouwman
cb2a807994 Merge pull request #486 from OddCoincidence/assert-raises
Reuse and improve ergonomics of assert_raises utility
2019-02-17 07:59:34 +01:00
Windel Bouwman
9d218bf806 Merge pull request #485 from calixteman/ccov
Code coverage for RustPython
2019-02-17 07:56:58 +01:00
Windel Bouwman
a92f4bbecc Merge pull request #487 from liranringel/azure-pipelines
Add Windows CI via Azure Pipelines
2019-02-17 07:54:31 +01:00
Joey Hain
114d9df1d1 Allow attributes to be used as decorators 2019-02-16 19:43:25 -08:00
Calixte Denizet
6d646cc38e Add a codecov badge 2019-02-16 18:33:45 +01:00
Joey Hain
47e95486f0 Reuse and improve ergonomics of assert_raises utility
- Move assert_raises to testutils
- Add optional message argument, with reasonable default
- Reverse order of expr and exception type for readability
- Lambda argument no longer takes parameter
- Convert applicable snippets to use assert_raises
2019-02-16 09:32:42 -08:00
Liran Ringel
9b7160800b Fix os_info.py to pass on windows 2019-02-16 19:23:33 +02:00
Calixte Denizet
e86e108e67 Don't run tests in --release with code coverage 2019-02-16 18:19:52 +01:00
Liran Ringel
2554174697 Set up CI with Azure Pipelines 2019-02-16 18:34:45 +02:00
Calixte Denizet
31c5b5ed3d Workaround issue with grcov 2019-02-16 17:30:05 +01:00
Calixte Denizet
ce541a1ca5 Remove parenthesis 2019-02-16 15:55:41 +01:00
Calixte Denizet
1e3c2fbf18 Try again 2019-02-16 15:28:43 +01:00
Calixte Denizet
90184bcb90 Code coverage for RustPython 2019-02-16 14:54:29 +01:00
Calixte Denizet
5a154f9745 Fix list & tuple equality 2019-02-16 14:23:20 +01:00
Calixte Denizet
93c184a745 Fix fmt 2019-02-16 13:25:13 +01:00
Calixte Denizet
dd6b5b9aae Fix list_eq 2019-02-16 13:15:58 +01:00
Calixte Denizet
117c6c8494 Fix list_remove 2019-02-16 13:00:39 +01:00
Calixte Denizet
5d82e2c6b5 Fix equality check in list_count, list_index and list_contains 2019-02-16 12:45:57 +01:00
Calixte Denizet
bf19d652dc Fix issue with equality 2019-02-16 12:45:57 +01:00
Windel Bouwman
159daf061a Change scope from using set_item to set_attr. 2019-02-16 11:18:55 +01:00
Windel Bouwman
163a1311f7 Merge pull request #470 from janczer/add_remove_list
Add remvoe to list object
2019-02-16 10:27:27 +01:00
Windel Bouwman
26f9a7fe1a Merge pull request #483 from OddCoincidence/f-string-format-specs
Support format specs in f-strings
2019-02-16 08:35:21 +01:00
Windel Bouwman
eb55d20b4a Merge pull request #480 from janczer/fix_clippy_issues
Remove return, use function without closure
2019-02-16 08:31:26 +01:00