GeezerVison is showing github.com — gh-116622: Fix testPyObjectPrintOSError on Android by mhsmith · Pull Request #122487 · python/cpython
Conversation
mhsmith
commented
Jul 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This test, which was added in #98749, was failing on Android as follows:
17:43:48.804 W ======================================================================
17:43:48.804 W FAIL: testPyObjectPrintOSError (test.test_capi.test_object.PrintTest.testPyObjectPrintOSError)
17:43:48.804 W ----------------------------------------------------------------------
17:43:48.804 W Traceback (most recent call last):
17:43:48.804 W File "/data/user/0/org.python.testbed/files/python/lib/python3.13/test/test_capi/test_object.py", line 103, in testPyObjectPrintOSError
17:43:48.804 W with self.assertRaises(OSError):
17:43:48.804 W _testcapi.pyobject_print_os_error(output_filename)
17:43:48.804 W AssertionError: OSError not raised
17:43:48.804 W
17:43:48.804 W ----------------------------------------------------------------------
This was caused by a recently-fixed bug in OpenBSD's libc, on which Android's libc is based. Luckily there's a simple workaround.
This PR also addresses the comment in #121595 about it being inconvenient to build all architectures before running the testbed. The build script now allows architectures to be missing, as long as at least one is present.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
CI failure seems unrelated:
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Annoying, but makes sense to me.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @mhsmith for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
blhsing
pushed a commit
to blhsing/cpython
that referenced
this pull request
Aug 22, 2024
Adds extra handling for way BSD/Android return errors from calls to fwrite.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|