Skip to content

Commit

Permalink
Fixed zero-length format string in Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
emcconville committed Apr 1, 2015
1 parent b9404ab commit 861bb12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/misc_test.py
Expand Up @@ -35,9 +35,10 @@ def test_fonts():
font_list = fonts()
mark.skipif(not font_list, reason='Fonts not configured on system')
first_font = font_list[0]
assert first_font in fonts('*{}*'.format(first_font[1:-1]))
first_font_part = first_font[1:-1]
assert first_font in fonts('*{0}*'.format(first_font_part))


def test_formats():
xc = 'XC'
assert formats(xc) == [xc]
assert formats(xc) == [xc]

0 comments on commit 861bb12

Please sign in to comment.