remove usage of f-strings, Python 3.5 is still supported
This commit is contained in:
parent
3da3e356fa
commit
9273f30036
|
@ -60,18 +60,18 @@ keyfile = {f.name}
|
||||||
async def test_keyfile_valid(run_source):
|
async def test_keyfile_valid(run_source):
|
||||||
with tempfile.NamedTemporaryFile(mode='w') as f, \
|
with tempfile.NamedTemporaryFile(mode='w') as f, \
|
||||||
unset_github_token_env() as token:
|
unset_github_token_env() as token:
|
||||||
f.write(f'''\
|
f.write('''\
|
||||||
[keys]
|
[keys]
|
||||||
github = {token}
|
github = {token}
|
||||||
''')
|
'''.format(token=token))
|
||||||
f.flush()
|
f.flush()
|
||||||
|
|
||||||
test_conf = f'''\
|
test_conf = '''\
|
||||||
[example]
|
[example]
|
||||||
github = harry-sanabria/ReleaseTestRepo
|
github = harry-sanabria/ReleaseTestRepo
|
||||||
|
|
||||||
[__config__]
|
[__config__]
|
||||||
keyfile = {f.name}
|
keyfile = {name}
|
||||||
'''
|
'''.format(name=f.name)
|
||||||
|
|
||||||
assert await run_source(test_conf) == '20140122.012101'
|
assert await run_source(test_conf) == '20140122.012101'
|
||||||
|
|
Loading…
Reference in New Issue