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 2021/05/09 21:09:55 UTC
[airflow] branch master updated: Remove redundant character escape
from regex (#15740)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 350fd62 Remove redundant character escape from regex (#15740)
350fd62 is described below
commit 350fd627376b296aa70aea2481530336e6c71b06
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Mon May 10 07:09:41 2021 +1000
Remove redundant character escape from regex (#15740)
---
tests/test_utils/perf/dags/elastic_dag.py | 2 +-
tests/www/api/experimental/test_endpoints.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_utils/perf/dags/elastic_dag.py b/tests/test_utils/perf/dags/elastic_dag.py
index 10c93f1..51db138 100644
--- a/tests/test_utils/perf/dags/elastic_dag.py
+++ b/tests/test_utils/perf/dags/elastic_dag.py
@@ -27,7 +27,7 @@ from airflow.operators.bash import BashOperator
# DAG File used in performance tests. Its shape can be configured by environment variables.
RE_TIME_DELTA = re.compile(
- r"^((?P<days>[\.\d]+?)d)?((?P<hours>[\.\d]+?)h)?((?P<minutes>[\.\d]+?)m)?((?P<seconds>[\.\d]+?)s)?$"
+ r"^((?P<days>[.\d]+?)d)?((?P<hours>[.\d]+?)h)?((?P<minutes>[.\d]+?)m)?((?P<seconds>[.\d]+?)s)?$"
)
diff --git a/tests/www/api/experimental/test_endpoints.py b/tests/www/api/experimental/test_endpoints.py
index bd3dc12..8c6734c 100644
--- a/tests/www/api/experimental/test_endpoints.py
+++ b/tests/www/api/experimental/test_endpoints.py
@@ -55,7 +55,7 @@ class TestBase:
def assert_deprecated(self, resp):
assert 'true' == resp.headers['Deprecation']
assert re.search(
- r'\<.+/upgrading-to-2.html#migration-guide-from-experimental-api-to-stable-api-v1\>; '
+ r'<.+/upgrading-to-2.html#migration-guide-from-experimental-api-to-stable-api-v1>; '
'rel="deprecation"; type="text/html"',
resp.headers['Link'],
)