From 8da67a3bc79716eb87708b4b5e8bce058ee0c6c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:20:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- run_tests.py | 2 +- test_list_new.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.py b/run_tests.py index 05b99fd1fa..00d413070a 100644 --- a/run_tests.py +++ b/run_tests.py @@ -1,6 +1,6 @@ import subprocess -with open("test_list_new.txt", "r") as file: +with open("test_list_new.txt") as file: tests = [line.strip() for line in file.readlines()] subprocess.run(["pytest", "-v"] + tests[-100:]) diff --git a/test_list_new.txt b/test_list_new.txt index ec56ac5749..1707c88ebd 100644 --- a/test_list_new.txt +++ b/test_list_new.txt @@ -810,4 +810,4 @@ tests/tests_pytorch/core/test_lightning_optimizer.py::test_lightning_optimizer[F tests/tests_pytorch/core/test_lightning_optimizer.py::test_lightning_optimizer_automatic_optimization_optimizer_step tests/tests_pytorch/core/test_lightning_optimizer.py::test_lightning_optimizer[True] tests/tests_pytorch/core/test_lightning_optimizer.py::test_params_groups_and_state_are_accessible -tests/tests_pytorch/core/test_lightning_optimizer.py::test_lightning_optimizer_automatic_optimization_lbfgs_zero_grad \ No newline at end of file +tests/tests_pytorch/core/test_lightning_optimizer.py::test_lightning_optimizer_automatic_optimization_lbfgs_zero_grad