Fix 'W605 invalid escape sequence' errors from pycodestyle

This commit is contained in:
Ned Batchelder
2018-11-02 06:06:43 -04:00
parent 428c061b07
commit 2d438d8bb5
6 changed files with 13 additions and 13 deletions

View File

@@ -1002,9 +1002,9 @@ class DiscussionEditorPreviewTest(UniqueCourseTest):
appear in the preview box
"""
self.page.set_new_post_editor_value(
'\\begin{equation}'
'\\tau_g(\omega) = - \\frac{d}{d\omega}\phi(\omega) \hspace{2em} (1) '
'\\end{equation}'
r'\begin{equation}'
r'\tau_g(\omega) = - \frac{d}{d\omega}\phi(\omega) \hspace{2em} (1) '
r'\end{equation}'
)
self.assertIsNotNone(self.page.get_new_post_preview_text())
self.page.click_element(".cancel")