Commit Graph
345 Commits
Author SHA1 Message Date
Jeong YunWon 2e27587f15 Merge pull request #4530 from itsankitkp/handle-panic-strftime-new
Return arg in case of invalid param in strftime
2023-02-22 00:03:04 +09:00
Jeong YunWon 42c0752370 less flaky syntax_async (#4536) 2023-02-21 23:17:11 +09:00
Jeong YunWon e42553867f Update extra_tests/snippets/stdlib_datetime.py 2023-02-21 23:14:53 +09:00
Jeong YunWon 955347e426 posix.pathconf_names only for linux 2023-02-21 19:45:04 +09:00
Marvin Mednick 468f1aa312 Implmentation for os.pathconf_names 2023-02-21 19:15:29 +09:00
Ankit Kumar Pandey fcfe8e1ac8 Return arg in case of invalid param in strftime
Chrono panics in case of unsupported formats, this patch handles such
cases and returns supplied format as a result.
2023-02-20 21:05:16 +05:30
Jeong YunWon e5735cde67 Merge pull request #4517 from youknowone/cpython-3.11
trying to go with CPython 3.11
2023-02-20 13:50:10 +09:00
Jeong YunWon 75f3f3c8c4 Fix syntax_async.py for 3.11 2023-02-20 02:06:21 +09:00
Zhiyan Xiao 3b8d670c81 Add unicodedata.east_asian_width (#4523) 2023-02-20 01:38:02 +09:00
Jeong YunWon 8c38a8381c os is frozen in 3.11 2023-02-18 07:09:42 +09:00
Jeong YunWon d22446d1dd imp.py -> stdlib_imp.py 2023-02-18 07:09:42 +09:00
Jeong YunWon 4bd090887e Remove completed TODO 2023-02-13 21:28:19 +09:00
Jeong YunWon 2fc0edf85b remove duplicated tests from tests/stdlib_math.py 2023-02-13 21:28:19 +09:00
Jeong YunWon 4192e5de2d extra_tests/snippets/{builtins => builtin_eval}.py 2023-02-13 21:28:19 +09:00
Jim Fasarakis-Hilliard 685a7e8ac5 Merge pull request #4466 from moreal/array-contains
Implement `array.array.__contains__`
2023-01-23 16:46:17 +02:00
Moreal a866d881e5 Add extra_tests for array.__contains__ 2023-01-23 02:18:45 +09:00
yt2b 3d52769a47 Add tests 2023-01-22 14:44:35 +09:00
yt2b 8828fd17a0 Alternate float format doesn't work correctly. (#4446) 2023-01-14 16:48:03 +09:00
Steve Shi 765933136c Implement Sqlite3 Module (#4260)
* add supporting for PyAtomic<PyObject>

* create sqlite module

* add dependency sqlite3-sys

* add module constants

* import sqlite3 from cpython

* adjust lib

* add module structure

* impl Connection.cursor

* add module exceptions

* impl lstrip_sql

* impl statement new

* wip cursor.execute

* wip cursor

* wip error to exception

* add SqliteRaw and SqliteStatementRaw

* impl statement parameters binding

* wip cursor.execute

* add test_sqlite

* impl closeable connection

* impl closeable cursor

* impl cursor.executemany

* impl cursor.executescript

* impl cursor.fetch*

* impl connection.backup

* stage 1

* add support connection.backup with progress

* fix backup deadlock

* support changable isolation_level

* impl converter

* impl adapter

* impl text_factory and blob

* impl create_function

* impl create_function 2

* fix empty statement

* impl blob support

* impl create_aggregate

* impl create_aggregate 2

* refactor create_*

* impl enable_callback_traceback

* impl create_collation

* refactor create_* with CallbackData

* fix text and blob use SQLITE_TRANSIENT

* fix str to SQLITE_TEXT

* impl thread check

* impl Connection Factory

* impl busy timeout

* shift sqlite3-sys -> libsqlite3-sys

* refactor CallbackData

* impl create_window_function

* refactor callback functions

* add module attr converters

* fix nullable isolation_level

* add module attr adapters

* fix nullable adapt proto

* impl set_authorizer

* impl trace_callback

* impl set_progress_handler

* impl cancellable sqlite function*

* impl attributes for Connection

* fix some failed tests

* impl Row

* impl Blob methods

* impl Blob subscript & ass_subscript

* pass tests

* rebase

* no sqlite for wasm

* use ThreadId instead u64

* no libsqlite3-sys for wasm

* fix into_cstring for all platform

* fixup

* rebase

* fix windows into_bytes

* disable sqlite for android

* fixup
2023-01-07 22:03:24 +02:00
yt2b 22a5a83fda PyInt.format only raises ValueError (#4428) 2023-01-08 02:06:04 +09:00
yt2b 1534112cfe Add test 2023-01-05 23:55:23 +09:00
yt2b 59bfc51769 Add test 2023-01-05 18:52:10 +09:00
yt2b de58b7cb00 Add tests 2023-01-04 23:13:55 +09:00
Jim Fasarakis-Hilliard cad2adc299 Merge pull request #4326 from yt2b/fix_list_remove
Fix `PyList.remove`
2023-01-04 13:28:59 +02:00
yt2b fb6b3836ad Add test 2023-01-03 16:22:57 +09:00
yt2b bd35b00184 Add test 2023-01-02 22:51:49 +09:00
yt2b c85f8990f5 Fix separated format (#4397) 2023-01-02 17:37:32 +09:00
Jeong YunWon aff07cf54f Merge pull request #4390 from garychia/islice-reduce
Implement islice.__reduce__
2023-01-01 15:25:21 +09:00
yt2b c8c5abe5e4 Add test 2023-01-01 00:21:41 +09:00
Chia-Hsiang Cheng 49597bc523 Add tests for islice 2022-12-31 21:23:37 +08:00
yt2b 24c2b8842b Remove test 2022-12-31 01:35:09 +09:00
yt2b 3741321b29 Add test 2022-12-31 00:58:18 +09:00
yt2b f07e03cde7 Add test 2022-12-30 20:03:20 +09:00
Moreal a3b1d25768 Complement binascii extra_tests 2022-12-28 05:19:06 +09:00
yt2b 65d2aca88f Add test in syntax_comprehension.py 2022-12-18 10:03:41 +09:00
yt2b 2e792e6320 Add test case in builtin_list.py 2022-12-11 10:40:51 +09:00
Gyubong 117ae0a0ea Add example code as extra test 2022-10-17 13:45:15 +09:00
dvermd 539c662f87 Add test for dropwhile.__setstate__ 2022-10-05 14:54:43 +02:00
dvermd fdd159c14d Add takewhile.__setstate__ 2022-10-05 14:54:01 +02:00
dvermd bfa74dda87 Add dropwhile.__reduce__ 2022-10-05 00:26:07 +02:00
Jeong YunWon 3a36e551a1 Merge pull request #4191 from dvermd/oserror_reduce
Add OSError.__reduce__
2022-10-05 00:29:57 +09:00
dvermd 4c6cb00cb3 Add OSError.__reduce__ 2022-10-04 16:08:34 +02:00
Jeong YunWon 54d7c34668 Merge pull request #4194 from dvermd/oserror_attributes
Fill OSError attributes
2022-10-04 22:55:12 +09:00
dvermd a18bad2ca3 Fill OSError attributes 2022-10-04 13:34:09 +02:00
Gyubong c39c745275 Add extra_test 2022-10-01 18:24:42 +09:00
Noa 69aac594c9 Try fixing jsontest? 2022-08-24 17:49:22 -05:00
Jeong YunWon 43d2b97162 Fix f-string self-documenting format 2022-08-22 01:56:23 +09:00
Jeong YunWon 14ad4c04cf Add more fstring tests 2022-08-22 00:57:57 +09:00
Charles Marsh 32030a0f89 Add a snippet in syntax_generator.py 2022-08-21 11:07:49 -04:00
Jeong YunWon d4a9301762 Merge pull request #4104 from RustPython/fix-jsontests
Fix jsontests.py interaction with module-level SkipTest
2022-08-19 13:09:14 +09:00