Interesting suggestion by pyupgrade

This commit is contained in:
Artem Veremey
2021-03-22 23:38:51 -07:00
parent 97a1efdd16
commit 5cf2cc4d5e

View File

@@ -27,7 +27,7 @@ def parametrize_from_file(test_namespace: str, parameter_file: str) -> Callable:
test_file_base_path = pathlib.Path(__file__).parent.absolute()
data_file_full_path = pathlib.Path(test_file_base_path, parameter_file)
with open(data_file_full_path, "r", encoding="utf-8") as file:
with open(data_file_full_path, encoding="utf-8") as file:
parameter_data = yaml.full_load(file)
idlist = []