Tests: Use Option.from_any instead of Option() in test_pickle_dumps, which is currently preventing Range options from using default: "random" #4197

This commit is contained in:
NewSoupVi 2024-11-17 01:52:49 +01:00 committed by GitHub
parent 66314de965
commit 73146ef30c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -78,4 +78,4 @@ class TestOptions(unittest.TestCase):
if not world_type.hidden:
for option_key, option in world_type.options_dataclass.type_hints.items():
with self.subTest(game=gamename, option=option_key):
pickle.dumps(option(option.default))
pickle.dumps(option.from_any(option.default))