From d5580d54df4388d553cad90e2f3c2fb45b97593a Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Thu, 29 Jun 2023 23:43:54 -0700 Subject: [PATCH] test: use exist_ok when making updated dir (typo...) --- tests/run_replay_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_replay_tests.py b/tests/run_replay_tests.py index 3822a02122..b7425a64ab 100644 --- a/tests/run_replay_tests.py +++ b/tests/run_replay_tests.py @@ -720,7 +720,7 @@ def on_result_updated(w: ReplayResultUpdatedHandler): # .zplay files are updated in-place, but lets also copy over to the test output folder. # This makes it easy to upload an archive of updated replays in CI. if mode == 'update' and watcher.result['changed']: - (test_results_dir / 'updated').mkdir(exists_ok=True) + (test_results_dir / 'updated').mkdir(exist_ok=True) shutil.copy2(replay_file, test_results_dir / 'updated' / replay_file.name) break except ReplayTimeoutException: