Ignore:
Timestamp:
12/29/08 18:21:43 (6 years ago)
Author:
xi
Message:

Use Cython if available; added Python 3 support to _yaml.pyx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/lib3/test_yaml_ext.py

    r330 r331  
    253253        if not isinstance(collection, dict): 
    254254            collection = vars(collection) 
    255         keys = collection.keys() 
    256         keys.sort() 
    257         for key in keys: 
     255        for key in sorted(collection): 
    258256            value = collection[key] 
    259257            if isinstance(value, types.FunctionType) and hasattr(value, 'unittest'): 
    260258                functions.append(wrap_ext_function(value)) 
    261259    for function in functions: 
    262         assert function.unittest_name not in globals() 
    263         globals()[function.unittest_name] = function 
     260        assert function.__name__ not in globals() 
     261        globals()[function.__name__] = function 
    264262 
    265263import test_tokens, test_structure, test_errors, test_resolver, test_constructor,   \ 
Note: See TracChangeset for help on using the changeset viewer.