From 9afcf166109cfcfcdef40815d8a752b6b32cf32c Mon Sep 17 00:00:00 2001 From: Jouramie Date: Tue, 27 Feb 2024 23:13:33 -0500 Subject: [PATCH] python 3.8 doesnt like parenthesis for some obscure reasons... --- worlds/stardew_valley/test/TestOptions.py | 4 ++-- worlds/stardew_valley/test/long/TestOptionsLong.py | 10 +++++----- .../test/long/TestPreRolledRandomness.py | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/worlds/stardew_valley/test/TestOptions.py b/worlds/stardew_valley/test/TestOptions.py index 919400eef705..456fd507ab76 100644 --- a/worlds/stardew_valley/test/TestOptions.py +++ b/worlds/stardew_valley/test/TestOptions.py @@ -162,8 +162,8 @@ def test_given_island_related_goal_then_override_exclude_ginger_island(self): Goal.internal_name: Goal.options[goal], island_option.internal_name: island_option.options[value] } - with (self.solo_world_sub_test(f"Goal: {goal}, {island_option.internal_name}: {value}", world_options, dirty_state=True) - as (multiworld, stardew_world)): + with self.solo_world_sub_test(f"Goal: {goal}, {island_option.internal_name}: {value}", world_options, dirty_state=True) \ + as (multiworld, stardew_world): self.assertEqual(stardew_world.options.exclude_ginger_island, island_option.option_false) self.assert_basic_checks(multiworld) diff --git a/worlds/stardew_valley/test/long/TestOptionsLong.py b/worlds/stardew_valley/test/long/TestOptionsLong.py index d45085af644f..6281dd681a9a 100644 --- a/worlds/stardew_valley/test/long/TestOptionsLong.py +++ b/worlds/stardew_valley/test/long/TestOptionsLong.py @@ -27,16 +27,16 @@ def test_given_option_pair_when_generate_then_basic_checks(self): for (option1, option1_choice), (option2, option2_choice) in combinations(option_choices, 2): if option1 is option2: continue - + world_options = { option1.internal_name: option1_choice, option2.internal_name: option2_choice } - with (self.solo_world_sub_test(f"{option1.internal_name}: {option1_choice}, {option2.internal_name}: {option2_choice}", - world_options, - world_caching=False) - as (multiworld, _)): + with self.solo_world_sub_test(f"{option1.internal_name}: {option1_choice}, {option2.internal_name}: {option2_choice}", + world_options, + world_caching=False) \ + as (multiworld, _): self.assert_basic_checks(multiworld) diff --git a/worlds/stardew_valley/test/long/TestPreRolledRandomness.py b/worlds/stardew_valley/test/long/TestPreRolledRandomness.py index 8a1e1c71011c..66bc5aeba8bb 100644 --- a/worlds/stardew_valley/test/long/TestPreRolledRandomness.py +++ b/worlds/stardew_valley/test/long/TestPreRolledRandomness.py @@ -17,9 +17,9 @@ def test_given_pre_rolled_difficult_randomness_when_generate_then_basic_checks(s num_tests = 1000 for i in range(num_tests): seed = get_seed() # Put seed in parameter to test - with (self.solo_world_sub_test(f"Entrance Randomizer and Remixed Bundles", - choices, - seed=seed, - world_caching=False) - as (multiworld, _)): + with self.solo_world_sub_test(f"Entrance Randomizer and Remixed Bundles", + choices, + seed=seed, + world_caching=False) \ + as (multiworld, _): self.assert_basic_checks(multiworld)