diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-07-28 23:53:41 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-07-28 23:53:41 +0200 |
commit | f9b50b606fe3f12b09dd36cb999238bf440d0cd1 (patch) | |
tree | 04a14e70240d7677ac84d95cd38f3cded4729091 /_test/test_version.py | |
parent | 9f9266b31445296439cbcc9c0e3f01b4fb15ed8a (diff) | |
download | ruamel.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_version.py')
-rw-r--r-- | _test/test_version.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/_test/test_version.py b/_test/test_version.py index 4aad308..0855a5c 100644 --- a/_test/test_version.py +++ b/_test/test_version.py @@ -2,11 +2,11 @@ import pytest # NOQA -import ruamel.yaml from roundtrip import dedent, round_trip, round_trip_load def load(s, version=None): + import ruamel.yaml # NOQA return ruamel.yaml.round_trip_load(dedent(s), version) @@ -111,6 +111,7 @@ class TestVersions: class TestIssue62: # bitbucket issue 62, issue_62 def test_00(self): + import ruamel.yaml # NOQA s = dedent("""\ {}# Outside flow collection: - ::vector @@ -126,6 +127,7 @@ class TestIssue62: round_trip(s.format(''), preserve_quotes=True) def test_00_single_comment(self): + import ruamel.yaml # NOQA s = dedent("""\ {}# Outside flow collection: - ::vector @@ -141,6 +143,7 @@ class TestIssue62: # round_trip(s.format('%YAML 1.2\n---\n'), preserve_quotes=True, version=(1, 2)) def test_01(self): + import ruamel.yaml # NOQA s = dedent("""\ {}[random plain value that contains a ? character] """) |