Source

pyyaml / tests / lib3 / test_constructor.py

Diff from to

tests/lib3/test_constructor.py

     global MyLoader, MyDumper, MyTestClass1, MyTestClass2, MyTestClass3, YAMLObject1, YAMLObject2,  \
             AnObject, AnInstance, AState, ACustomState, InitArgs, InitArgsWithState,    \
             NewArgs, NewArgsWithState, Reduce, ReduceWithState, MyInt, MyList, MyDict,  \
-            FixedOffset, execute
+            FixedOffset, today, execute
 
     class MyLoader(yaml.Loader):
         pass
         def dst(self, dt):
             return datetime.timedelta(0)
 
+    today = datetime.date.today()
+
 def _load_code(expression):
     return eval(expression)