summaryrefslogtreecommitdiffstats
path: root/debian/tests/data/test-yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/data/test-yaml.py')
-rw-r--r--debian/tests/data/test-yaml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/tests/data/test-yaml.py b/debian/tests/data/test-yaml.py
index 7a1bf9e..311a3f8 100644
--- a/debian/tests/data/test-yaml.py
+++ b/debian/tests/data/test-yaml.py
@@ -1,15 +1,15 @@
# very crude smoke test of the yaml package
-import ruamel.yaml as yaml
+from ruamel.yaml import YAML
def test_load_clib():
import ruamel.yaml.cyaml
def test_safe_load():
-
+ yaml = YAML(typ="safe", pure=False)
with open("test-yaml.yaml") as fh:
- y = yaml.safe_load(fh)
+ y = yaml.load(fh)
assert len(y['testdata']) == 2