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
Bug report
test_readline.test_environment_is_not_modifiedfails on OpenBSD:The readline module sets
rl_change_environmentto 0 to prevent readline from settingLINESandCOLUMNS, but this variable only exists since readline 6.3, and OpenBSD has an older version.HAVE_RL_CHANGE_ENVIRONMENTis 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