summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-12-06 18:37:27 +0100
committerAnthon van der Neut <anthon@mnt.org>2018-12-06 18:37:27 +0100
commit4bb9b8178f2c25341ce797b6ff90b6f8078f26e6 (patch)
tree0303c7f7cb526b19c1b7ba5149277a1b49d46d7b /_test
parent702a0ce64bb990e5c442f8d3dcaf05c72a3ff255 (diff)
downloadruamel.yaml-4bb9b8178f2c25341ce797b6ff90b6f8078f26e6.tar.gz
fix issue #244 dumping methods of metaclass derived classes0.15.81
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to '_test')
-rw-r--r--_test/test_z_data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/_test/test_z_data.py b/_test/test_z_data.py
index b0464ba..ca75ca6 100644
--- a/_test/test_z_data.py
+++ b/_test/test_z_data.py
@@ -192,7 +192,8 @@ class TestYAMLData(object):
assert data is not None
typ = 'rt'
print('type:', typ)
- print('data:', data.value, end='')
+ if data is not None:
+ print('data:', data.value, end='')
print('output:', output.value if output is not None else output)
if typ == 'rt':
self.round_trip(data, output, yaml_version=yaml_version)