Ignore:
Timestamp:
12/28/08 16:42:35 (5 years ago)
Author:
xi
Message:

Minor 2.3 and win32 compatibility fixes; clarify the 'feature not found' message in setup.py.

File:
1 edited

Legend:

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

    r322 r325  
    241241        finally: 
    242242            _tear_down() 
    243     wrapper.func_name = '%s_ext' % function.func_name 
     243    try: 
     244        wrapper.func_name = '%s_ext' % function.func_name 
     245    except TypeError: 
     246        pass 
     247    wrapper.unittest_name = '%s_ext' % function.func_name 
    244248    wrapper.unittest = function.unittest 
    245249    wrapper.skip = getattr(function, 'skip', [])+['.skip-ext'] 
     
    260264                functions.append(wrap_ext_function(value)) 
    261265    for function in functions: 
    262         assert function.func_name not in globals() 
    263         globals()[function.func_name] = function 
     266        assert function.unittest_name not in globals() 
     267        globals()[function.unittest_name] = function 
    264268 
    265269import test_tokens, test_structure, test_errors, test_resolver, test_constructor,   \ 
Note: See TracChangeset for help on using the changeset viewer.