Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
Using \u, even in a raw string, is a syntax error when
unicode_literals is on.
  • Loading branch information
mdboom committed Aug 26, 2015
1 parent eb42cfc commit 54c19f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_texmanager.py
Expand Up @@ -14,7 +14,7 @@ def test_fontconfig_preamble():
tm1 = TexManager()
font_config1 = tm1.get_font_config()

plt.rcParams['text.latex.preamble'] = [r'\usepackage{txfonts}']
plt.rcParams['text.latex.preamble'] = ['\\usepackage{txfonts}']
tm2 = TexManager()
font_config2 = tm2.get_font_config()

Expand Down

0 comments on commit 54c19f5

Please sign in to comment.