You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/11/15 09:37:46 UTC
[airflow] 03/19: Use PyUpgrade to use Python 3.6 features (#11447)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 564eb957c5111ae466a9f288a4505a55500692a5
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Nov 15 03:41:17 2020 +0100
Use PyUpgrade to use Python 3.6 features (#11447)
Use features like `f-strings` instead of format across the code-base.
More details: https://github.com/asottile/pyupgrade
(cherry-picked from commit 8c42cf1b00c90f0d7f11b8a3a455381de8e003c5)
---
chart/tests/test_chart_quality.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chart/tests/test_chart_quality.py b/chart/tests/test_chart_quality.py
index 3898941..32237cb 100644
--- a/chart/tests/test_chart_quality.py
+++ b/chart/tests/test_chart_quality.py
@@ -28,9 +28,9 @@ CHART_FOLDER = os.path.dirname(os.path.dirname(__file__))
class ChartQualityTest(unittest.TestCase):
def test_values_validate_schema(self):
- with open(os.path.join(CHART_FOLDER, "values.yaml"), "r") as f:
+ with open(os.path.join(CHART_FOLDER, "values.yaml")) as f:
values = yaml.safe_load(f)
- with open(os.path.join(CHART_FOLDER, "values.schema.json"), "r") as f:
+ with open(os.path.join(CHART_FOLDER, "values.schema.json")) as f:
schema = json.load(f)
# Add extra restrictions just for the tests to make sure