Changeset 331 for pyyaml/trunk/tests/lib3/test_yaml_ext.py
- Timestamp:
- 12/29/08 18:21:43 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/tests/lib3/test_yaml_ext.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/tests/lib3/test_yaml_ext.py
r330 r331 253 253 if not isinstance(collection, dict): 254 254 collection = vars(collection) 255 keys = collection.keys() 256 keys.sort() 257 for key in keys: 255 for key in sorted(collection): 258 256 value = collection[key] 259 257 if isinstance(value, types.FunctionType) and hasattr(value, 'unittest'): 260 258 functions.append(wrap_ext_function(value)) 261 259 for function in functions: 262 assert function. unittest_namenot in globals()263 globals()[function. unittest_name] = function260 assert function.__name__ not in globals() 261 globals()[function.__name__] = function 264 262 265 263 import test_tokens, test_structure, test_errors, test_resolver, test_constructor, \
Note: See TracChangeset
for help on using the changeset viewer.
