diff options
Diffstat (limited to '_test/test_z_data.py')
-rw-r--r-- | _test/test_z_data.py | 3 |
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) |