Skip to content

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

Closed as not planned
@sobolevn

Description

@sobolevn

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

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions