GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — gh-138013: Move I/O test infrastructre to test_io.utils by cmaloney · Pull Request #138475 · python/cpython Conversation
| ||||||||||||
|
Windows bot failure looks real and a weird intermittent issue I've been running into locally some. Investigating: test_uninitialized (test.test_io.test_bufferedio.CBufferedRWPairTest.test_uninitialized) ... Warning -- Unraisable exception Exception ignored while finalizing file <_io.BufferedRWPair object at 0x000001AC6C4654F0>: Traceback (most recent call last): File "D:\a\cpython\cpython\Lib\re\_parser.py", line 176, in append def append(self, code): ValueError: flush of closed file Warning -- Unraisable exception Exception ignored while finalizing file <_io.BufferedWriter>: Traceback (most recent call last): File "D:\a\cpython\cpython\Lib\re\_parser.py", line 176, in append def append(self, code): ValueError: flush of closed file |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I ran all the tl; dr: I think this PR splitting the tests is sound. It might make an existing flaky / race case more visible |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ubuntu Github Action got a better backtrace: Exception ignored while finalizing file <_io.BufferedWriter>: Traceback (most recent call last): File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_io/_support.py", line 41, in writable def writable(self): ValueError: flush of closed file Warning -- Unraisable exception Exception ignored while finalizing file <_io.BufferedRWPair object at 0x200017dfb50>: Traceback (most recent call last): File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_io/_support.py", line 41, in writable def writable(self): ValueError: flush of closed file |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Found a reproducer and filed an issue for the BufferedRWPair GC: gh-138720 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,317 @@ | |||
| import array | |||
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What do you think of test_io.utils name instead? test_asyncio, test_ast and test_interpreters packages use this name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Works for me; This PR needs GH-138724 (or another fix for gh-138720) as that modifies a buffered test which is moved int his PR.
I see sort of three options
utils a PR of its own (no test moving) with these two requested changes; then make the test moving a distinct PRutils) doing the pure copy-paste after a fix for GC of unclosed io.BuffererdRWPair after .readinto results in unraisable exception #138720 is landedHappy to do any of the above, my leaning is 2, but 1 would make it so more of the work of splitting test_general can be landed sooner potentially
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
thought of a 4:
test_io.utils
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Decided to implement 4
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The buffered tests are being modified, get into a parallel lane
|
Merged, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.