diff --git a/tests/test_checkout.py b/tests/test_checkout.py index eb1d46602..23c0918f6 100644 --- a/tests/test_checkout.py +++ b/tests/test_checkout.py @@ -284,8 +284,8 @@ class TestCheckoutMissingMd5InStageFile(TestRepro): with open(self.file1_stage, "r") as fd: d = yaml.load(fd) - del (d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM]) - del (d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM]) + del d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM] + del d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM] with open(self.file1_stage, "w") as fd: yaml.dump(d, fd) diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index 1fd864558..200250d00 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -634,7 +634,7 @@ class TestWarnOnOutdatedStage(TestDvc): stage_file_path = stage.relpath content = load_stage_file(stage_file_path) - del (content["outs"][0]["md5"]) + del content["outs"][0]["md5"] with open(stage_file_path, "w") as stage_file: yaml.dump(content, stage_file) diff --git a/tests/test_repro.py b/tests/test_repro.py index 66154c3a4..beb825567 100644 --- a/tests/test_repro.py +++ b/tests/test_repro.py @@ -709,8 +709,8 @@ class TestReproMissingMd5InStageFile(TestRepro): with open(self.file1_stage, "r") as fd: d = yaml.load(fd) - del (d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM]) - del (d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM]) + del d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM] + del d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM] with open(self.file1_stage, "w") as fd: yaml.dump(d, fd)