summaryrefslogtreecommitdiff
path: root/_test/lib/test_emitter.py
diff options
context:
space:
mode:
Diffstat (limited to '_test/lib/test_emitter.py')
-rw-r--r--_test/lib/test_emitter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/_test/lib/test_emitter.py b/_test/lib/test_emitter.py
index 1158854..7fff498 100644
--- a/_test/lib/test_emitter.py
+++ b/_test/lib/test_emitter.py
@@ -95,6 +95,9 @@ class EventsLoader(yaml.Loader):
value = getattr(yaml, class_name)(**mapping)
return value
+# if Loader is not a composite, add this function
+# EventsLoader.add_constructor = yaml.constructor.Constructor.add_constructor
+
EventsLoader.add_constructor(None, EventsLoader.construct_event)