summaryrefslogtreecommitdiff
path: root/test/test_nodes.py
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2019-08-10 08:00:58 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2019-08-10 08:00:58 +0000
commit5fcff6c10ff13d75e4e7c9babbe5ddd93fdccdb7 (patch)
treeead4ed5666656227c5fdbd0b2cee7a1351ff8199 /test/test_nodes.py
parentb0f246f3a59fca2e2c76d1d05610ea7035e2d5e6 (diff)
downloaddocutils-5fcff6c10ff13d75e4e7c9babbe5ddd93fdccdb7.tar.gz
Fix: (in regex) py38 SyntaxWarning: invalid escape sequence \
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8310 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_nodes.py')
-rwxr-xr-xtest/test_nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_nodes.py b/test/test_nodes.py
index 8e1c3cf50..1badfd391 100755
--- a/test/test_nodes.py
+++ b/test/test_nodes.py
@@ -55,7 +55,7 @@ class TextTests(unittest.TestCase):
self.assertEqual(self.text.pformat(), u'Line 1.\nLine 2.\n')
def test_strip(self):
- text = nodes.Text(' was noch ', ' \was\ noch \\ ')
+ text = nodes.Text(' was noch ', r' \was\ noch \\ ')
stripped = text.lstrip().rstrip()
stripped2 = text.lstrip(' wahn').rstrip(' wahn')
self.assertEqual(stripped, u'was noch')