Skip to content

test_environment_is_not_modified fails on OpenBSD #154395

Description

@serhiy-storchaka

Bug report

test_readline.test_environment_is_not_modified fails on OpenBSD:

FAIL: test_environment_is_not_modified (test.test_readline.TestReadline.test_environment_is_not_modified)
AssertionError: {'LAN[433 chars]', 'LINES': '24', 'COLUMNS': '80'} != {'LAN[433 chars]'}

The readline module sets rl_change_environment to 0 to prevent readline from setting LINES and COLUMNS, but this variable only exists since readline 6.3, and OpenBSD has an older version. HAVE_RL_CHANGE_ENVIRONMENT is not defined there, so the environment is modified and there is nothing we can do about it.

The test can check this: sysconfig.get_config_var("HAVE_RL_CHANGE_ENVIRONMENT") is 0 on OpenBSD and 1 on Linux, FreeBSD, NetBSD, DragonFly BSD and Solaris.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.16new features, bugs and security fixesOS-unsupportedtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions