Merge pull request #3934 from randovania/feature/py-3.11-compat

Code fixes for Python 3.11
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-18 18:03:04 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -41,10 +41,10 @@ async def _process_command_async(args: list[str], input_data: str, read_callback
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.STDOUT)
await asyncio.wait([
await asyncio.gather(
_write_data(process.stdin, input_data),
_read_data(process.stdout, read_callback),
])
)
await process.wait()
@@ -123,6 +123,7 @@ def test_pickup_data_for_a_major(dread_game_description, preset_manager):
description = MagicMock(spec=LayoutDescription)
description.all_patches = {0: MagicMock()}
description.get_preset.return_value = preset
description.get_seed_for_player.return_value = 1000
# Setup
pickup = pickup_creator.create_major_item(