summaryrefslogtreecommitdiff
path: root/_test/test_string.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
commitf9b50b606fe3f12b09dd36cb999238bf440d0cd1 (patch)
tree04a14e70240d7677ac84d95cd38f3cded4729091 /_test/test_string.py
parent9f9266b31445296439cbcc9c0e3f01b4fb15ed8a (diff)
downloadruamel.yaml-f9b50b606fe3f12b09dd36cb999238bf440d0cd1.tar.gz
Resolving issue #210 deprecation warning in python 3.7
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
Diffstat (limited to '_test/test_string.py')
-rw-r--r--_test/test_string.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/_test/test_string.py b/_test/test_string.py
index 6b3070f..f095095 100644
--- a/_test/test_string.py
+++ b/_test/test_string.py
@@ -17,7 +17,6 @@ and the chomping modifiers:
import pytest
import platform
-import ruamel
# from ruamel.yaml.compat import ordereddict
from roundtrip import round_trip, dedent, round_trip_load, round_trip_dump # NOQA
@@ -130,6 +129,7 @@ class TestQuotedScalarString:
class TestReplace:
"""inspired by issue 110 from sandres23"""
def test_replace_preserved_scalar_string(self):
+ import ruamel
s = dedent("""\
foo: |
foo
@@ -148,6 +148,7 @@ class TestReplace:
""")
def test_replace_double_quoted_scalar_string(self):
+ import ruamel
s = dedent("""\
foo: "foo foo bar foo"
""")