Changeset 350 for pyyaml/trunk/tests

Show
Ignore:
Timestamp:
08/29/09 15:15:31 (3 years ago)
Author:
xi
Message:

Fixed a problem when CDumper incorrectly serializes a node anchor.

Location:
pyyaml/trunk/tests
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/lib/test_constructor.py

    r330 r350  
    1818            AnObject, AnInstance, AState, ACustomState, InitArgs, InitArgsWithState,    \ 
    1919            NewArgs, NewArgsWithState, Reduce, ReduceWithState, MyInt, MyList, MyDict,  \ 
    20             FixedOffset, execute 
     20            FixedOffset, today, execute 
    2121 
    2222    class MyLoader(yaml.Loader): 
     
    213213        def dst(self, dt): 
    214214            return datetime.timedelta(0) 
     215 
     216    today = datetime.date.today() 
    215217 
    216218def _load_code(expression): 
  • pyyaml/trunk/tests/lib3/test_constructor.py

    r330 r350  
    1515            AnObject, AnInstance, AState, ACustomState, InitArgs, InitArgsWithState,    \ 
    1616            NewArgs, NewArgsWithState, Reduce, ReduceWithState, MyInt, MyList, MyDict,  \ 
    17             FixedOffset, execute 
     17            FixedOffset, today, execute 
    1818 
    1919    class MyLoader(yaml.Loader): 
     
    200200        def dst(self, dt): 
    201201            return datetime.timedelta(0) 
     202 
     203    today = datetime.date.today() 
    202204 
    203205def _load_code(expression):