bpo-45243: Use connection limits to simplify sqlite3 tests#29356
bpo-45243: Use connection limits to simplify sqlite3 tests#29356serhiy-storchaka merged 13 commits into
sqlite3 tests#29356Conversation
13a40b0 to
07d012a
Compare
November 2, 2021 09:09
07d012a to
8cdb980
Compare
November 2, 2021 09:34
|
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 22adb06 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Bigmem tests rewriting does not look correct to me. These tests are specially purposed to test the integer overflow. They try with scripts of specific length (slightly below or above INT_MAX). It does not make sense to test scripts with smaller length. They are decorated with bigmemtest because they require a large amount of RAM and should be skipped if it is not enough.
Sorry, something went wrong.
The C code explicitly checks the current connection limit (
cpython/Modules/_sqlite/cursor.c Lines 730 to 737 in 77a1f8d
cpython/Modules/_sqlite/statement.c Lines 62 to 68 in 77a1f8d |
Sorry, something went wrong.
|
@serhiy-storchaka, let me know if you want me to revert the bigmem tests. I believe it is correct to change them, though (see my previous comment). |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Okay, let change these tests.
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
|
Thanks for reviewing, @serhiy-storchaka. What do you think of my proposed patch in #29356 (comment)? I guess it is out of scope for this PR, but I think we should apply it. |
Sorry, something went wrong.
|
FYI, I'll merge in |
Sorry, something went wrong.
|
CI is ok; ready for merge :) I'll create an issue regarding the length checks. |
Sorry, something went wrong.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
build-in round is missing if SQLITE_OMIT_FLOATING_POINT is defined
|
Thank you for reviewing, Serhiy. The PR is in a better shape now. |
Sorry, something went wrong.
https://bugs.python.org/issue45243