-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since pytest patches stdin unless `-s` is used, it caused `os.isatty(sys.stdin.fileno())` to report that the process is daemonized. Pytest does not have a mechanism to temporarily unpatch stdin so this change explicitly creates a Pseudo-TTY (PTY) and binds it to subprocesses created by the test helper called `Process`. Refs: * https://stackoverflow.com/a/43012138/595220 * https://stackoverflow.com/q/41274719/595220
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters