Skip to content

CI Tests Failure with Release of Python 3.12.0-alpha.7 #1165

Description

@rmartin16

Describe the bug

CI test failure showed up today; wasn't happening on Python 3.12.0-alpha.6

==============================================================================
ERROR: tests/integrations/download/test_Download__file.py::test_content_connection_error
------------------------------------------------------------------------------
Downloading something.zip...

Traceback (most recent call last):
  File "D:\a\briefcase\briefcase\tests\integrations\download\test_Download__file.py", line 363, in test_content_connection_error
    mock_tools.download.file(
  File "D:\a\briefcase\briefcase\.tox\py\Lib\site-packages\briefcase\integrations\download.py", line 85, in file
    self._fetch_and_write_content(response, filename)
  File "D:\a\briefcase\briefcase\.tox\py\Lib\site-packages\briefcase\integrations\download.py", line 116, in _fetch_and_write_content
    temp_file.write(response.content)
  File "C:\hostedtoolcache\windows\Python\3.12.0-alpha.7\x64\Lib\tempfile.py", line 483, in func_wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'MagicMock'

Steps to reproduce

CI

Expected behavior

CI passes.

Screenshots

No response

Environment

  • Operating System: Windows, macOS, Ubuntu
  • Python version: 3.12.0-alpha.7
  • Software versions:
    • Briefcase: 0.3.14.dev78+g3f8b8979

Logs

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA crash or error in behavior.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions