textual: Regression in Textual 0.48 when executing app in a subprocess
In the memray project we have several tests that execute textual in a subprocess and drives them by passing input. For example:
Since yesterday’s release of Textual 0.48 all of these test hang and our test suite is frozen. It looks like the app ignores the input that we are passing via input="q". I can confirm that all these test work with textual<0.48.
Unfortunately this is blocking memray’s CI right now
About this issue
- Original URL
 - State: closed
 - Created 5 months ago
 - Comments: 16 (12 by maintainers)
 
Commits related to this issue
- Only perform the SIGTOU test if we're hooked up to a tty Fixes #4104 Co-authored-by: Pablo Galindo <pablogsal@gmail.com> — committed to davep/textual by davep 5 months ago
 
Fixed in 0.48.2, just released
Thanks a lot for the help! ❤️
I can confirm that this also fixes the problem
Looks like this call:
https://github.com/Textualize/textual/commit/374478a0b12640df4753c041770e824a2c4259f0#diff-13d6e180136893233a19e971fc665690e6afb9ed7b807311884ab961f1db25f2R157-R159
is making the process hang. Seems that
termios.tcgetattris enough to make it hang