Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New buildbot failures: os.stdout.fileno() is unsupported #121927

Closed
sobolevn opened this issue Jul 17, 2024 · 1 comment
Closed

New buildbot failures: os.stdout.fileno() is unsupported #121927

sobolevn opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
tests Tests in the Lib/test dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Jul 17, 2024

Bug report

======================================================================
ERROR: test_stdout_is_tty (test.test_pyrepl.test_pyrepl.TestPyReplOutput.test_stdout_is_tty)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/test/test_pyrepl/test_pyrepl.py", line 500, in test_stdout_is_tty
if os.isatty(sys.stdout.fileno()):
~~~~~~~~~~~~~~~~~^^
io.UnsupportedOperation: fileno

Example: https://buildbot.python.org/#/builders/185/builds/7253/steps/7/logs/stdio failure on AMD64 RHEL8 3.x

I think that this test should be updated to handle UnsupportedOperation exception.
Introduced in #120904

Linked PRs

@sobolevn sobolevn added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir topic-repl Related to the interactive shell labels Jul 17, 2024
@sobolevn sobolevn self-assigned this Jul 17, 2024
sobolevn added a commit to sobolevn/cpython that referenced this issue Jul 17, 2024
@sobolevn sobolevn closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
@sobolevn
Copy link
Member Author

Duplicate of #121924

@sobolevn sobolevn marked this as a duplicate of #121924 Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant