Skip to content

Commit

Permalink
Use format() instead of an f-string.
Browse files Browse the repository at this point in the history
To support Python 3.5.
  • Loading branch information
dstein64 committed Mar 28, 2021
1 parent 20fe714 commit e510248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_vimgolf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_show_command(self):
# Use the challenge with fewest entries to avoid VimGolf Issue #306.
# https://github.com/igrigorik/vimgolf/issues/306
entry = min((x, idx) for idx, x in enumerate(entry_counts))[1] + 1
self.assertEqual(main(['vimgolf', 'show', f'+{entry}']), 0)
self.assertEqual(main(['vimgolf', 'show', '+{}'.format(entry)]), 0)
# The following ID is for 'Pascal's Triangle'
# http://www.vimgolf.com/challenges/5ca2bc786b547e000c77fd52
challenge_id = '5ca2bc786b547e000c77fd52'
Expand Down

0 comments on commit e510248

Please sign in to comment.