summaryrefslogtreecommitdiff
path: root/tests/test_rtf_formatter.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2018-11-28 15:49:16 +0100
committerGeorg Brandl <georg@python.org>2018-11-28 15:49:16 +0100
commit8ec816d3c681b15247d5dac12bc5d291703c8ad0 (patch)
tree1f4c5c4c3f6c79988e116fe03f5ce7853157388f /tests/test_rtf_formatter.py
parent6de7d2347cbd833ba562ff9fb75deed5f9777316 (diff)
downloadpygments-git-8ec816d3c681b15247d5dac12bc5d291703c8ad0.tar.gz
Fix invalid escapes due to missing raw string prefix.
Diffstat (limited to 'tests/test_rtf_formatter.py')
-rw-r--r--tests/test_rtf_formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_rtf_formatter.py b/tests/test_rtf_formatter.py
index 756c03a9..44da5768 100644
--- a/tests/test_rtf_formatter.py
+++ b/tests/test_rtf_formatter.py
@@ -80,7 +80,7 @@ class RtfFormatterTest(StringTests, unittest.TestCase):
self.assertEndsWith(result, expected+self.foot, msg)
def test_escape_characters(self):
- t = u'\ {{'
+ t = u'\\ {{'
result = self.format_rtf(t)
expected = (r'\\ \{\{')
if not result.endswith(self.foot):