Skip to content

Commit

Permalink
Fix string format
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainDe committed Apr 1, 2015
1 parent 91c720f commit a723fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion didyoumean/didyoumean_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class NameErrorTests(AbstractTests):

def test_local(self):
"""Should be 'foo'."""
code = "foo = 0\n{}"
code = "foo = 0\n{0}"
typo, sugg = "foob", "foo"
bad_code, good_code = format_str(code, typo, sugg)
self.code_throws(bad_code, ". Did you mean '" + sugg + "'\?")
Expand Down

0 comments on commit a723fe1

Please sign in to comment.