Ignore:
Timestamp:
02/25/06 11:08:26 (8 years ago)
Author:
xi
Message:

Ready for the initial release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/tests/test_errors.py

    r53 r58  
    22import test_appliance 
    33 
    4 from yaml.error import YAMLError 
    5 from yaml.reader import * 
    6 from yaml.scanner import * 
    7 from yaml.parser import * 
    8 from yaml.composer import * 
    9 from yaml.resolver import * 
     4from yaml import * 
    105 
    116class TestErrors(test_appliance.TestAppliance): 
     
    2621            composer = Composer(parser) 
    2722            resolver = Resolver(composer) 
    28             return list(composer) 
     23            constructor = Constructor(resolver) 
     24            return list(constructor) 
    2925        except YAMLError, exc: 
    3026        #except ScannerError, exc: 
     
    4238            composer = Composer(parser) 
    4339            resolver = Resolver(composer) 
    44             return list(composer) 
    45         except YAMLError, exc: 
     40            constructor = Constructor(resolver) 
     41            return list(constructor) 
     42        #except YAMLError, exc: 
    4643        #except ScannerError, exc: 
    4744        #except ParserError, exc: 
    4845        #except ComposerError, exc: 
    49             #print '.'*70 
    50             #print "%s:" % filename 
    51             #print "%s:" % exc.__class__.__name__, exc 
     46        except ConstructorError, exc: 
     47            print '.'*70 
     48            print "%s:" % filename 
     49            print "%s:" % exc.__class__.__name__, exc 
    5250            raise 
    5351 
Note: See TracChangeset for help on using the changeset viewer.