diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-10 08:00:58 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-10 08:00:58 +0000 |
| commit | 5fcff6c10ff13d75e4e7c9babbe5ddd93fdccdb7 (patch) | |
| tree | ead4ed5666656227c5fdbd0b2cee7a1351ff8199 /test/test_nodes.py | |
| parent | b0f246f3a59fca2e2c76d1d05610ea7035e2d5e6 (diff) | |
| download | docutils-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-x | test/test_nodes.py | 2 |
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') |
