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

test_pyrepl fails on x86-64 macOS buildbot -- setupterm: could not find terminfo database #123944

Closed
encukou opened this issue Sep 11, 2024 · 1 comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes OS-mac tests Tests in the Lib/test dir topic-repl Related to the interactive shell

Comments

@encukou
Copy link
Member

encukou commented Sep 11, 2024

test_pyrepl fails on a specific buildbot on 3.14 (e.g. here) and 3.13 (e.g. here):

test_readline_history_file (test.test_pyrepl.test_pyrepl.TestMain.test_readline_history_file) ... FAIL
======================================================================
FAIL: test_readline_history_file (test.test_pyrepl.test_pyrepl.TestMain.test_readline_history_file)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.13.billenstein-macos/build/Lib/test/test_pyrepl/test_pyrepl.py", line 1305, in test_readline_history_file
    output, exit_code = self.run_repl("exit\n", env=env)
                        ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Users/buildbot/buildarea/3.13.billenstein-macos/build/Lib/test/test_pyrepl/test_pyrepl.py", line 1225, in run_repl
    return self._run_repl(
           ~~~~~~~~~~~~~~^
        repl_input, env=env, cmdline_args=cmdline_args, cwd=cwd
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/buildbot/buildarea/3.13.billenstein-macos/build/Lib/test/test_pyrepl/test_pyrepl.py", line 1276, in _run_repl
    self.fail(f"Timeout while waiting for output, got: {''.join(output)}")
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Timeout while waiting for output, got: exit
Python 3.13.0rc2+ (heads/3.13:660baa14d69, Sep  6 2024, 17:27:02) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
warning: can't use pyrepl: setupterm: could not find terminfo database
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> 

This looks similar to #121988. The test was added in #121779.

@encukou encukou added tests Tests in the Lib/test dir 3.13 bugs and security fixes 3.14 new features, bugs and security fixes topic-repl Related to the interactive shell labels Sep 11, 2024
@emilyemorehouse
Copy link
Member

This is duplicated by #123870 and is fixed in #124396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes OS-mac tests Tests in the Lib/test dir topic-repl Related to the interactive shell
Projects
None yet
Development

No branches or pull requests

3 participants