From 57cb76ed8ed411f104bc7876ba9a5039c643f057 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Tue, 17 Mar 2020 17:38:45 +0000
Subject: [PATCH] TEST: more f-strings

---
 tests/test_fslsub.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_fslsub.py b/tests/test_fslsub.py
index 5de9bcf9e..e2fb9ebcc 100644
--- a/tests/test_fslsub.py
+++ b/tests/test_fslsub.py
@@ -50,8 +50,8 @@ env['PYTHONPATH'] = op.join(op.dirname(fsl.__file__), '..')
 cmd   = op.basename(args[0])
 jobid = random.randint(1, 9999)
 
-with open(f'{{cmd}}.o{{jobid}}', 'w') as stdout, \
-     open(f'{{cmd}}.e{{jobid}}', 'w') as stderr:
+with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \
+     open('{{}}.e{{}}'.format(cmd, jobid), 'w') as stderr:
     result = sp.run(args, stdout=stdout, stderr=stderr, env=env)
 
 print(str(jobid))
-- 
GitLab