From 54c19f5984c00aa2df5661f3c5240e4962b09e29 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 26 Aug 2015 12:56:12 -0400 Subject: [PATCH] Fix syntax error Using \u, even in a raw string, is a syntax error when unicode_literals is on. --- lib/matplotlib/tests/test_texmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_texmanager.py b/lib/matplotlib/tests/test_texmanager.py index 23b1b2452ad3..1c525d5ed804 100644 --- a/lib/matplotlib/tests/test_texmanager.py +++ b/lib/matplotlib/tests/test_texmanager.py @@ -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()