summaryrefslogtreecommitdiff
path: root/tests/test_30_mdstore_old.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_30_mdstore_old.py')
-rw-r--r--tests/test_30_mdstore_old.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_30_mdstore_old.py b/tests/test_30_mdstore_old.py
index 64c20d84..412d54c6 100644
--- a/tests/test_30_mdstore_old.py
+++ b/tests/test_30_mdstore_old.py
@@ -113,7 +113,7 @@ def _eq(l1, l2):
def _fix_valid_until(xmlstring):
new_date = datetime.datetime.now() + datetime.timedelta(days=1)
new_date = new_date.strftime("%Y-%m-%dT%H:%M:%SZ")
- return re.sub(r' validUntil=".*?"', ' validUntil="%s"' % new_date, xmlstring)
+ return re.sub(r' validUntil=".*?"', f' validUntil="{new_date}"', xmlstring)
def test_swami_1():