| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Use PyFloat_Pack4() to raise OverflowError. Add more tests on packing/unpacking floats.
|
@skirpichev: Would you mind to review this change? |
Sorry, something went wrong.
There was a problem hiding this comment.
(Sorry, I forgot to submit review yesterday.)
Looks ok, but maybe we should rather keep test_705836(), just with a small addition in the end.
Sorry, something went wrong.
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
|
!buildbot s390x Fedora Stable |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit ce1093b 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146422%2Fmerge The command will test the builders whose names match following regular expression: s390x Fedora Stable The builders matched are:
|
Sorry, something went wrong.
|
!buildbot SPARCv9 Oracle Solaris 11.4 PR |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit ce1093b 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146422%2Fmerge The command will test the builders whose names match following regular expression: SPARCv9 Oracle Solaris 11.4 PR The builders matched are:
|
Sorry, something went wrong.
|
On Wed, Mar 25, 2026 at 06:26:38PM -0700, Victor Stinner wrote:
Even if there are tests on the C
API, I would prefer explicit tests on the struct module.
Then lets test also half-floats here.
|
Sorry, something went wrong.
|
Hi, the SPARC buildbot is unfortunately still not 100% there, but the test_structpasses and I tested it myself and can confirm that the test was failing on SPARC without this change: ======================================================================
FAIL: test_705836 (test.test_struct.StructTest.test_705836)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/pythonmain/cpython-main/Lib/test/test_struct.py", line 399, in test_705836
self.assertRaises(OverflowError, struct.pack, ">f", big)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: OverflowError not raised by packand passes with it. Thanks! |
Sorry, something went wrong.
|
I added again test_float_round_trip(), now also with tests on half-floats. |
Sorry, something went wrong.
|
!buildbot s390x Fedora Stable PR |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit d4e1edf 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146422%2Fmerge The command will test the builders whose names match following regular expression: s390x Fedora Stable PR The builders matched are:
|
Sorry, something went wrong.
|
"macOS / build and test (macos-26-intel)": test_tkinter failed with a timeout: test_wm_iconbitmap (test.test_tkinter.test_misc.WmTest.test_wm_iconbitmap) ... Timeout (0:10:00)! Thread 0x00007ff84f189c00 (most recent call first): File "/Users/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 2345 in wm_iconbitmap File "/Users/runner/work/cpython/cpython/Lib/test/test_tkinter/test_misc.py", line 582 in test_wm_iconbitmap I re-ran this job. |
Sorry, something went wrong.
|
"buildbot/s390x Fedora Stable PR": the new test_struct passed successfully! |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
Use PyFloat_Pack4() to raise OverflowError. Add more tests on packing/unpacking floats. (cherry picked from commit 8de70b3) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
|
Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 8de70b31c59b1d572d95f8bb471a09cfe4cd2b13 3.13 |
Sorry, something went wrong.
|
GH-146460 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-146461 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
|
I merged my PR. Thanks for the review @skirpichev. |
Sorry, something went wrong.
Use PyFloat_Pack4() to raise OverflowError. Add more tests on packing/unpacking floats. Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Use PyFloat_Pack4() to raise OverflowError. Add more tests on packing/unpacking floats. Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
| Back | FazBrowse Home | New Git URL |
Use PyFloat_Pack4() to raise OverflowError.
Add more tests on packing/unpacking floats.