============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /workspace/babel
configfile: setup.cfg
plugins: anyio-4.13.0, metadata-3.1.1, json-report-1.5.0, cov-7.1.0
collected 6709 items

tests/messages/test_catalog.py ........................................  [  0%]
tests/messages/test_checkers.py ......                                   [  0%]
tests/messages/test_extract.py ........................................  [  1%]
tests/messages/test_frontend.py ........................................ [  1%]
....................                                                     [  2%]
tests/messages/test_js_extract.py ..............                         [  2%]
tests/messages/test_jslexer.py ......                                    [  2%]
tests/messages/test_mofile.py ....                                       [  2%]
tests/messages/test_normalized_string.py .                               [  2%]
tests/messages/test_plurals.py ..........                                [  2%]
tests/messages/test_pofile.py .......................................... [  3%]
............                                                             [  3%]
tests/messages/test_setuptools_frontend.py ...F                          [  3%]
tests/test_core.py ..................................................... [  4%]
........................................................................ [  5%]
........................................................................ [  6%]
........................................................................ [  7%]
........................................................................ [  8%]
........................................................................ [  9%]
........................................................................ [ 10%]
........................................................................ [ 11%]
........................................................................ [ 12%]
........................................................................ [ 14%]
........................................................................ [ 15%]
........................................................................ [ 16%]
........................................................................ [ 17%]
........................................................................ [ 18%]
........................................................................ [ 19%]
..........                                                               [ 19%]
tests/test_date_intervals.py ......                                      [ 19%]
tests/test_dates.py .................................................... [ 20%]
........................................................................ [ 21%]
........................................................................ [ 22%]
........................................................................ [ 23%]
........................................................................ [ 24%]
........................................................................ [ 25%]
........................................................................ [ 26%]
........................................................................ [ 27%]
........................................................................ [ 28%]
........................................................................ [ 30%]
........................................................................ [ 31%]
........................................................................ [ 32%]
........................................................................ [ 33%]
........................................................................ [ 34%]
..............................................                           [ 35%]
tests/test_support.py ..                                                 [ 35%]
tests/test_date_intervals.py .                                           [ 35%]
tests/test_dates.py .................................................... [ 35%]
........................................................................ [ 36%]
........................................................................ [ 37%]
........................................................................ [ 39%]
........................................................................ [ 40%]
........................................................................ [ 41%]
........................................................................ [ 42%]
........................................................................ [ 43%]
........................................................................ [ 44%]
........................................................................ [ 45%]
........................................................................ [ 46%]
........................................................................ [ 47%]
........................................................................ [ 48%]
........................................................................ [ 49%]
...........................................                              [ 50%]
tests/test_support.py ..                                                 [ 50%]
tests/test_date_intervals.py ...                                         [ 50%]
tests/test_dates.py .....................................                [ 51%]
tests/test_day_periods.py ..........                                     [ 51%]
tests/test_languages.py ..                                               [ 51%]
tests/test_lists.py ..                                                   [ 51%]
tests/test_localedata.py ............s                                   [ 51%]
tests/test_numbers.py .................................................. [ 52%]
........................................................................ [ 53%]
..........                                                               [ 53%]
tests/test_plural.py .............................................       [ 54%]
tests/test_smoke.py .................................................... [ 54%]
........................................................................ [ 55%]
........................................................................ [ 57%]
........................................................................ [ 58%]
........................................................................ [ 59%]
........................................................................ [ 60%]
........................................................................ [ 61%]
........................................................................ [ 62%]
........................................................................ [ 63%]
........................................................................ [ 64%]
........................................................................ [ 65%]
........................................................................ [ 66%]
........................................................................ [ 67%]
........................................................................ [ 68%]
........................................................................ [ 69%]
........................................................................ [ 70%]
........................................................................ [ 72%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 76%]
........................................................................ [ 77%]
........................................................................ [ 78%]
........................................................................ [ 79%]
........................................................................ [ 80%]
........................................................................ [ 81%]
........................................................................ [ 82%]
........................................................................ [ 83%]
........................................................................ [ 84%]
........................................................................ [ 86%]
........................................................................ [ 87%]
........................................................................ [ 88%]
........................................................................ [ 89%]
........................................................................ [ 90%]
........................................................................ [ 91%]
........................................................................ [ 92%]
........................................................................ [ 93%]
........................................................................ [ 94%]
........................................................................ [ 95%]
........................................................................ [ 96%]
........................................................................ [ 97%]
........................................................................ [ 98%]
................................                                         [ 99%]
tests/test_support.py ....sss.s.....................                     [ 99%]
tests/test_util.py .............                                         [100%]

=================================== FAILURES ===================================
___________________________ test_setuptools_commands ___________________________

tmp_path = PosixPath('/tmp/pytest-of-openhands/pytest-13/test_setuptools_commands0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x762de7266320>

    def test_setuptools_commands(tmp_path, monkeypatch):
        """
        Smoke-tests all of the setuptools versions of the commands in turn.
    
        Their full functionality is tested better in `test_frontend.py`.
        """
        # Copy the test project to a temporary directory and work there
        dest = tmp_path / "dest"
        shutil.copytree(data_dir, dest)
        monkeypatch.chdir(dest)
    
        env = os.environ.copy()
        # When in Tox, we need to hack things a bit so as not to have the
        # sub-interpreter `sys.executable` use the tox virtualenv's Babel
        # installation, so the locale data is where we expect it to be.
        if "BABEL_TOX_INI_DIR" in env:
            env["PYTHONPATH"] = env["BABEL_TOX_INI_DIR"]
    
        # Initialize an empty catalog
>       subprocess.check_call([
            sys.executable,
            "setup.py",
            "init_catalog",
            "-i", os.devnull,
            "-l", "fi",
            "-d", "inited",
        ], env=env)

/workspace/babel/tests/messages/test_setuptools_frontend.py:67: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/usr/bin/python', 'setup.py', 'init_catalog', '-i', '/dev/null', '-l', ...],)
kwargs = {'env': {'ACP_NODE_DIR': '/opt/acp-node', 'BROWSER_USE_LOGGING_LEVEL': 'warning', 'BROWSER_USE_SETUP_LOGGING': 'false', 'HOME': '/home/openhands', ...}}
retcode = 1
cmd = ['/usr/bin/python', 'setup.py', 'init_catalog', '-i', '/dev/null', '-l', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/usr/bin/python', 'setup.py', 'init_catalog', '-i', '/dev/null', '-l', 'fi', '-d', 'inited']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:369: CalledProcessError
----------------------------- Captured stderr call -----------------------------
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'init_catalog'
--------------------------------- JSON report ----------------------------------
report saved to: report.json
=========================== short test summary info ============================
FAILED tests/messages/test_setuptools_frontend.py::test_setuptools_commands
================== 1 failed, 6703 passed, 5 skipped in 8.19s ===================