Skip to content

termios.error should be an alias or subclass of OSError #126017

@manueljacob

Description

@manueljacob

Bug report

Bug description:

termios.error probably should have been made an alias of OSError by PEP 3151, but it seems like it was forgotten.

The following assertion should not fail, but fails currently:

import termios
assert issubclass(termios.error, OSError)

CPython versions tested on:

3.9, 3.10, 3.11, 3.12, 3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions