-
-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Labels
bugA crash or error in behavior.A crash or error in behavior.
Description
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
- Briefcase:
Logs
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugA crash or error in behavior.A crash or error in behavior.