Package: src:python-briefcase
Version: 0.3.25-2
Severity: important
Tags: ftbfs forky sid
User: [email protected]
Usertags: ftbfs-during-forky-support-period

Dear maintainer:

During a rebuild of all packages in unstable with the system clock set
at 2030-08-09 (estimated to be three years after the release date of forky),
this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/ftbfs-future/

About the archive rebuild: This is an effort to keep forky free from
FTBFS bugs during its lifetime as a supported distribution, as
explained here for trixie:

https://lists.debian.org/debian-devel/2024/05/msg00414.html

This category of bugs is considered to be RC for forky, but I will
wait two months from now before raising to serious to give people a
little bit more time to fix them.

The build was made using sbuild and a reduced chroot with only
build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-briefcase, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
tests/platforms/windows/app/test_package.py::test_parse_options[cli_args6-signing_options6-True]
 PASSED [ 95%]
tests/platforms/windows/app/test_package.py::test_parse_options[cli_args7-signing_options7-True]
 PASSED [ 95%]
tests/platforms/windows/app/test_package.py::test_package_msi[kwargs0-False] 
PASSED [ 95%]
tests/platforms/windows/app/test_package.py::test_package_msi[kwargs1-True] 
PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi[kwargs2-False] 
PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_zip[kwargs0] PASSED [ 
96%]
tests/platforms/windows/app/test_package.py::test_package_zip[kwargs1] PASSED [ 
96%]
tests/platforms/windows/app/test_package.py::test_package_msi_with_codesigning[False-additional_args0]
 PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi_with_codesigning[True-additional_args1]
 PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_zip_with_codesigning[False-additional_args0]
 PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_zip_with_codesigning[True-additional_args1]
 PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi_invalid_identity 
PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi_failed_sign_app 
PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi_failed_compile 
PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_package_msi_failed_signing_msi
 PASSED [ 96%]
tests/platforms/windows/app/test_package.py::test_external_package_zip PASSED [ 
96%]
tests/platforms/windows/visualstudio/test_build.py::test_verify PASSED   [ 96%]
tests/platforms/windows/visualstudio/test_build.py::test_build_app[True] PASSED 
[ 96%]
tests/platforms/windows/visualstudio/test_build.py::test_build_app[False] 
PASSED [ 96%]
tests/platforms/windows/visualstudio/test_build.py::test_build_app_failure 
PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_host_os[Darwin]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_host_os[Linux]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_host_os[WeirdOS]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_arch[i686]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_arch[ARM64]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_arch[wonky]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_unsupported_32bit_python
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_context PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1-1.0.0]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2-1.2.0]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3.4-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3a4-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3b5-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3rc6-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3.dev7-1.2.3]
 PASSED [ 96%]
tests/platforms/windows/visualstudio/test_create.py::test_version_triple[1.2.3.post8-1.2.3]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_explicit_version_triple
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_guid PASSED    [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_explicit_guid PASSED 
[ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_support_package_url[5-5_0]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_support_package_url[5-5_1]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_support_package_url[0a3-0]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_support_package_url[0b2-0]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_support_package_url[0rc1-0]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_default_install_scope 
PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_per_machine_install_scope
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_per_user_install_scope
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_create.py::test_package_path PASSED [ 
97%]
tests/platforms/windows/visualstudio/test_create.py::test_external PASSED [ 97%]
tests/platforms/windows/visualstudio/test_dev.py::test_dev_visualstudio_app_starts
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_mixin.py::test_unsupported_host_os[Darwin]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_mixin.py::test_unsupported_host_os[Linux]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_mixin.py::test_unsupported_host_os[WeirdOS]
 PASSED [ 97%]
tests/platforms/windows/visualstudio/test_mixin.py::test_project_path PASSED [ 
97%]
tests/platforms/windows/visualstudio/test_open.py::test_open SKIPPED     [ 97%]
tests/platforms/windows/visualstudio/test_package.py::test_package_msi PASSED [ 
97%]
tests/platforms/windows/visualstudio/test_run.py::test_run_app PASSED    [ 97%]
tests/platforms/windows/visualstudio/test_run.py::test_run_app_with_args PASSED 
[ 97%]
tests/test_cmdline.py::test_empty PASSED                                 [ 97%]
tests/test_cmdline.py::test_help_only PASSED                             [ 97%]
tests/test_cmdline.py::test_version_only PASSED                          [ 97%]
tests/test_cmdline.py::test_unknown_command PASSED                       [ 97%]
tests/test_cmdline.py::test_new_command[new-expected_options0-expected_overrides0]
 PASSED [ 97%]
tests/test_cmdline.py::test_new_command[new --template=path/to/template 
--template-branch=experiment -C version=\\'1.2.3\\' -C 
other=42-expected_options1-expected_overrides1] PASSED [ 97%]
tests/test_cmdline.py::test_convert_command[convert-expected_options0-expected_overrides0]
 PASSED [ 97%]
tests/test_cmdline.py::test_convert_command[convert --template=path/to/template 
--template-branch=experiment -C version=\\'1.2.3\\' -C 
other=42-expected_options1-expected_overrides1] PASSED [ 97%]
tests/test_cmdline.py::test_dev_command[dev 
-app-expected_options0-expected_overrides0] PASSED [ 97%]
tests/test_cmdline.py::test_dev_command[dev 
-r-app-expected_options1-expected_overrides1] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev -r -C version=\\'1.2.3\\' -C 
other=42-app-expected_options2-expected_overrides2] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev 
--update-requirements-app-expected_options3-expected_overrides3] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev 
--test-app-expected_options4-expected_overrides4] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev --test 
-r-app-expected_options5-expected_overrides5] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev 
---app-expected_options6-expected_overrides6] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev -- 
''-app-expected_options7-expected_overrides7] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev -- 
--test-app-expected_options8-expected_overrides8] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev --test -- 
--test-app-expected_options9-expected_overrides9] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev --test -- 
-r-app-expected_options10-expected_overrides10] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev -r -- 
--test-app-expected_options11-expected_overrides11] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev -- -y --no 
maybe-app-expected_options12-expected_overrides12] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev --test -- -y --no 
maybe-app-expected_options13-expected_overrides13] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev 
--no-run-app-expected_options14-expected_overrides14] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev 
macOS-app-expected_options15-expected_overrides15] PASSED [ 98%]
tests/test_cmdline.py::test_dev_command[dev macOS 
Xcode-Xcode-expected_options16-expected_overrides16] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
-expected_options0-expected_overrides0] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
-r-expected_options1-expected_overrides1] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run -r -C version=\\'1.2.3\\' -C 
other=42-expected_options2-expected_overrides2] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
--update-requirements-expected_options3-expected_overrides3] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
--test-expected_options4-expected_overrides4] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run --test 
-r-expected_options5-expected_overrides5] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
---expected_options6-expected_overrides6] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run -- 
''-expected_options7-expected_overrides7] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run -- 
--test-expected_options8-expected_overrides8] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run --test -- 
--test-expected_options9-expected_overrides9] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run --test -- 
-r-expected_options10-expected_overrides10] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run -r -- 
--test-expected_options11-expected_overrides11] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run -- -y --no 
maybe-expected_options12-expected_overrides12] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run --test -- -y --no 
maybe-expected_options13-expected_overrides13] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
-u-expected_options14-expected_overrides14] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
--update-expected_options15-expected_overrides15] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
--update-resources-expected_options16-expected_overrides16] PASSED [ 98%]
tests/test_cmdline.py::test_run_command[run 
--update-support-expected_options17-expected_overrides17] PASSED [ 99%]
tests/test_cmdline.py::test_run_command[run 
--update-stub-expected_options18-expected_overrides18] PASSED [ 99%]
tests/test_cmdline.py::test_run_command[run 
--no-update-expected_options19-expected_overrides19] PASSED [ 99%]
tests/test_cmdline.py::test_upgrade_command[upgrade-expected_options0-expected_overrides0]
 PASSED [ 99%]
tests/test_cmdline.py::test_upgrade_command[upgrade -C version='1.2.3' -C 
other=42-expected_options1-expected_overrides1] PASSED [ 99%]
tests/test_cmdline.py::test_bare_command PASSED                          [ 99%]
tests/test_cmdline.py::test_linux_default PASSED                         [ 99%]
tests/test_cmdline.py::test_macOS_default SKIPPED (requires macOS)       [ 99%]
tests/test_cmdline.py::test_windows_default SKIPPED (requires Windows)   [ 99%]
tests/test_cmdline.py::test_bare_command_help PASSED                     [ 99%]
tests/test_cmdline.py::test_bare_command_version PASSED                  [ 99%]
tests/test_cmdline.py::test_command_unknown_platform PASSED              [ 99%]
tests/test_cmdline.py::test_command_explicit_platform PASSED             [ 99%]
tests/test_cmdline.py::test_command_explicit_platform_case_handling PASSED [ 
99%]
tests/test_cmdline.py::test_command_explicit_platform_help FAILED        [ 99%]
tests/test_cmdline.py::test_command_explicit_format PASSED               [ 99%]
tests/test_cmdline.py::test_command_unknown_format PASSED                [ 99%]
tests/test_cmdline.py::test_command_explicit_unsupported_format PASSED   [ 99%]
tests/test_cmdline.py::test_command_explicit_format_help FAILED          [ 99%]
tests/test_cmdline.py::test_command_disable_input PASSED                 [ 99%]
tests/test_cmdline.py::test_command_options PASSED                       [ 99%]
tests/test_cmdline.py::test_command_overrides PASSED                     [ 99%]
tests/test_cmdline.py::test_unknown_command_options PASSED               [ 99%]
tests/test_cmdline.py::test_dev_command_unsupported_platform[cmdline0] PASSED [ 
99%]
tests/test_cmdline.py::test_dev_command_unsupported_platform[cmdline1] PASSED [ 
99%]
tests/test_mainline.py::test_help PASSED                                 [ 99%]
tests/test_mainline.py::test_command PASSED                              [ 99%]
tests/test_mainline.py::test_command_warning PASSED                      [ 99%]
tests/test_mainline.py::test_command_error PASSED                        [ 99%]
tests/test_mainline.py::test_unknown_command_error PASSED                [ 99%]
tests/test_mainline.py::test_interrupted_command PASSED                  [ 99%]
tests/test_mainline.py::test_interrupted_command_with_log PASSED         [ 99%]
tests/test_mainline.py::test_test_failure FAILED                         [100%]

=================================== FAILURES ===================================
_____________________ test_command_explicit_platform_help ______________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8ebd065860>
capsys = <_pytest.capture.CaptureFixture object at 0x7f8eb9e46550>
console = <briefcase.console.Console object at 0x7f8ebcb6b710>

    def test_command_explicit_platform_help(monkeypatch, capsys, console):
        """``briefcase create macOS -h`` returns the macOS create app command 
help."""
        import sys
    
        # Pretend we're on macOS, regardless of where the tests run.
        monkeypatch.setattr(sys, "platform", "darwin")
    
        with pytest.raises(SystemExit) as excinfo:
            do_cmdline_parse("create macOS -h".split(), console)
    
        # Normal exit due to displaying help
        assert excinfo.value.code == 0
    
        output = capsys.readouterr().out.strip()
        output = "\n".join([line for line in output.splitlines() if not 
line.startswith("** WARNING")])
    
        # Help message is for default platform and format
        expected_output_start = """\
    usage: briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]
                                      [--log] [-a APP_NAME]
    
    Create and populate a macOS app.
    
    Supported formats:
      app (default), Xcode
    """
>       assert output.startswith(expected_output_start)
E       assert False
E        +  where False = <built-in method startswith of str object at 
0x2bf4da90>('usage: briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] 
[--no-input]\n                                  [--log] [-a APP_NAME]\n\nCreate 
and populate a macOS app.\n\nSupported formats:\n  app (default), Xcode\n')
E        +    where <built-in method startswith of str object at 0x2bf4da90> = 
"*************************************************************************\n*************************************************************************\n\n
    The version of Python you are using (3.13.12) is past its\n    end of life. 
As a result, it is highly likely your Briefcase\n    version is also out of 
date.\n\n    See https://devguide.python.org/versions/ for details on 
currently\n    supported Python 
versions.\n\n*************************************************************************\nusage:
 briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]\n        
                          [--log] [-a APP_NAME]\n\nCreate and populate a macOS 
app.\n\nSupported formats:\n  app (default), Xcode\n\noptions:\n  -h, --help    
        show this help message and exit\n  -C, --config KEY=VALUE\n             
           Override the value of the app configuration item KEY\n               
         with V
 ALUE\n  -v, --verbosity       Enable verbose logging. Use -vv and -vvv to 
increase\n                        logging verbosity\n  -V, --version         
show program's version number and exit\n  --no-input            Don't ask for 
user input. If any action would be\n                        destructive, an 
error will be raised; otherwise,\n                        default answers will 
be assumed\n  --log                 Save a detailed log to file. By default, 
this log file\n                        is only created for critical errors\n  
-a, --app APP_NAME    Name of the app to create (if multiple apps exist in\n    
                    the project)".startswith

tests/test_cmdline.py:503: AssertionError
______________________ test_command_explicit_format_help _______________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8ebd087ee0>
capsys = <_pytest.capture.CaptureFixture object at 0x7f8ebb81f350>
console = <briefcase.console.Console object at 0x7f8ebcb6a750>

    def test_command_explicit_format_help(monkeypatch, capsys, console):
        """``briefcase create macOS app -h`` returns the macOS create app 
help."""
    
        monkeypatch.setattr(sys, "platform", "darwin")
    
        with pytest.raises(SystemExit) as excinfo:
            do_cmdline_parse("create macOS app -h".split(), console)
    
        assert excinfo.value.code == 0
    
        output = capsys.readouterr().out
    
        expected_output_with_warning = """\
    *************************************************************************
    ** WARNING: Default system encoding is not supported                   **
    *************************************************************************
    
    usage: briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]
                                      [--log] [-a APP_NAME]
    
    Create and populate a macOS app.
    
    Supported formats:
      app (default), Xcode
    """
    
        expected_output_without_warning = """\
    usage: briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]
                                      [--log] [-a APP_NAME]
    
    Create and populate a macOS app.
    
    Supported formats:
      app (default), Xcode
    """
    
>       assert output.startswith(expected_output_with_warning) or 
> output.startswith(expected_output_without_warning)
E       assert (False or False)
E        +  where False = <built-in method startswith of str object at 
0x2bc462a0>('*************************************************************************\n**
 WARNING: Default system encoding is not supported                   
**\n*************************************************************************\n\nusage:
 briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]\n        
                          [--log] [-a APP_NAME]\n\nCreate and populate a macOS 
app.\n\nSupported formats:\n  app (default), Xcode\n')
E        +    where <built-in method startswith of str object at 0x2bc462a0> = 
"\n*************************************************************************\n**
 WARNING: Your Python version is unsupported!                        
**\n*************************************************************************\n\n
    The version of Python you are using (3.13.12) is past its\n    end of life. 
As a result, it is highly likely your Briefcase\n    version is also out of 
date.\n\n    See https://devguide.python.org/versions/ for details on 
currently\n    supported Python 
versions.\n\n*************************************************************************\nusage:
 briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]\n        
                          [--log] [-a APP_NAME]\n\nCreate and populate a macOS 
app.\n\nSupported formats:\n  app (default), Xcode\n\noptions:\n  -h, --help    
        show this help message and exit\n  -C, --config KEY=VALUE\n             
           Overrid
 e the value of the app configuration item KEY\n                        with 
VALUE\n  -v, --verbosity       Enable verbose logging. Use -vv and -vvv to 
increase\n                        logging verbosity\n  -V, --version         
show program's version number and exit\n  --no-input            Don't ask for 
user input. If any action would be\n                        destructive, an 
error will be raised; otherwise,\n                        default answers will 
be assumed\n  --log                 Save a detailed log to file. By default, 
this log file\n                        is only created for critical errors\n  
-a, --app APP_NAME    Name of the app to create (if multiple apps exist in\n    
                    the project)\n".startswith
E        +  and   False = <built-in method startswith of str object at 
0x2bc462a0>('usage: briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] 
[--no-input]\n                                  [--log] [-a APP_NAME]\n\nCreate 
and populate a macOS app.\n\nSupported formats:\n  app (default), Xcode\n')
E        +    where <built-in method startswith of str object at 0x2bc462a0> = 
"\n*************************************************************************\n**
 WARNING: Your Python version is unsupported!                        
**\n*************************************************************************\n\n
    The version of Python you are using (3.13.12) is past its\n    end of life. 
As a result, it is highly likely your Briefcase\n    version is also out of 
date.\n\n    See https://devguide.python.org/versions/ for details on 
currently\n    supported Python 
versions.\n\n*************************************************************************\nusage:
 briefcase create macOS app [-h] [-C KEY=VALUE] [-v] [-V] [--no-input]\n        
                          [--log] [-a APP_NAME]\n\nCreate and populate a macOS 
app.\n\nSupported formats:\n  app (default), Xcode\n\noptions:\n  -h, --help    
        show this help message and exit\n  -C, --config KEY=VALUE\n             
           Overrid
 e the value of the app configuration item KEY\n                        with 
VALUE\n  -v, --verbosity       Enable verbose logging. Use -vv and -vvv to 
increase\n                        logging verbosity\n  -V, --version         
show program's version number and exit\n  --no-input            Don't ask for 
user input. If any action would be\n                        destructive, an 
error will be raised; otherwise,\n                        default answers will 
be assumed\n  --log                 Save a detailed log to file. By default, 
this log file\n                        is only created for critical errors\n  
-a, --app APP_NAME    Name of the app to create (if multiple apps exist in\n    
                    the project)\n".startswith

tests/test_cmdline.py:588: AssertionError
______________________________ test_test_failure _______________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8ebd794e50>
pyproject_toml = None
tmp_path = PosixPath('/tmp/pytest-of-buildd/pytest-1/test_test_failure0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f8eb99af050>

    def test_test_failure(monkeypatch, pyproject_toml, tmp_path, capsys):
        """A test suite failure can be reported."""
        import sys
        from briefcase.exceptions import BriefcaseTestSuiteFailure
        from briefcase.commands.run import RunCommand
    
        monkeypatch.setattr(sys, "argv", ["briefcase", "run", "--test"])
    
        # Monkeypatch a keyboard interrupt into the run command
        def run_call(self, **kwargs):
            raise BriefcaseTestSuiteFailure()
    
        monkeypatch.setattr(RunCommand, "__call__", run_call)
    
        # Failed test suite returns 1000
        assert main() == 1000
    
        # Captura a saída real e remove possíveis avisos
        output = capsys.readouterr().out.strip()
    
        expected_warning = "Briefcase and the third-party tools it uses only 
support UTF-8."
        if output:
>           assert expected_warning in output, f"Unexpected output: {output}"
E           AssertionError: Unexpected output: 
*************************************************************************
E             ** WARNING: Your Python version is unsupported!                   
     **
E             
*************************************************************************
E             
E                 The version of Python you are using (3.13.12) is past its
E                 end of life. As a result, it is highly likely your Briefcase
E                 version is also out of date.
E             
E                 See https://devguide.python.org/versions/ for details on 
currently
E                 supported Python versions.
E             
E             
*************************************************************************
E           assert 'Briefcase and the third-party tools it uses only support 
UTF-8.' in 
'*************************************************************************\n** 
WARNING: Your Python version is unsupported!                        
**\n*************************************************************************\n\n
    The version of Python you are using (3.13.12) is past its\n    end of life. 
As a result, it is highly likely your Briefcase\n    version is also out of 
date.\n\n    See https://devguide.python.org/versions/ for details on 
currently\n    supported Python 
versions.\n\n*************************************************************************'

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_briefcase/build/tests/test_mainline.py:209:
 AssertionError
=========================== short test summary info ============================
FAILED tests/test_cmdline.py::test_command_explicit_platform_help - assert False
FAILED tests/test_cmdline.py::test_command_explicit_format_help - assert (Fal...
FAILED tests/test_mainline.py::test_test_failure - AssertionError: Unexpected...
========= 3 failed, 3198 passed, 63 skipped, 183 deselected in 30.53s ==========
E: pybuild pybuild:483: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_briefcase/build; {interpreter} -m 
pytest  -v -k 'not test_build_appimage and not 
test_build_app_with_support_package_update and not test_build_failure and not 
test_binary_path and not test_cmdline_tools_url and not 
test_data_path_creation_failure and not test_detects_bad_zipfile and not 
test_file_name and not test_distribution_path and not test_download_url and not 
test_download_missing and not test_download_sdk and not 
test_download_sdk_legacy_install and not test_download_wix and not 
test_download_sdk_if_sdkmanager_not_executable and not 
test_install_custom_stub_binary_url and not test_install_stub_binary_missing 
and not test_open_no_docker_linux and not 
test_output_format_template_context_bad_tag and not 
test_output_format_template_context and not test_package_app and not 
test_raises_networkfailure_on_connectionerror and not test_rcedit_url and not 
test_run_app_test_
 mode_with_args and not test_run_app_test_mode and not test_run_console_app and 
not test_run_gui_app_failed and not test_run_gui_app and not 
test_run_console_app_failed and not test_run_console_app_with_passthrough and 
not test_successful_jdk_download and not test_supported_host_os_docker and not 
test_supported_arch and not test_upgrade_existing_sdk and not 
test_verify_tools_download_failure'
dh_auto_test: error: pybuild --test -i python{version} -p "3.14 3.13" returned 
exit code 13
make: *** [debian/rules:51: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to