Ignore:
Timestamp:
02/20/06 15:30:09 (8 years ago)
Author:
xi
Message:

Implement Composer and BaseResolver?.

File:
1 edited

Legend:

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

    r52 r53  
    66from yaml.scanner import * 
    77from yaml.parser import * 
     8from yaml.composer import * 
     9from yaml.resolver import * 
    810 
    911class TestErrors(test_appliance.TestAppliance): 
     
    2224            scanner = Scanner(reader) 
    2325            parser = Parser(scanner) 
    24             return list(parser) 
     26            composer = Composer(parser) 
     27            resolver = Resolver(composer) 
     28            return list(composer) 
    2529        except YAMLError, exc: 
    2630        #except ScannerError, exc: 
    2731        #except ParserError, exc: 
     32        #except ComposerError, exc: 
    2833            #print '.'*70 
    2934            #print "%s:" % exc.__class__.__name__, exc 
     
    3540            scanner = Scanner(reader) 
    3641            parser = Parser(scanner) 
    37             return list(parser) 
     42            composer = Composer(parser) 
     43            resolver = Resolver(composer) 
     44            return list(composer) 
    3845        except YAMLError, exc: 
    3946        #except ScannerError, exc: 
    4047        #except ParserError, exc: 
     48        #except ComposerError, exc: 
    4149            #print '.'*70 
    4250            #print "%s:" % filename 
Note: See TracChangeset for help on using the changeset viewer.