Changeset 328 for pyyaml/trunk/tests3/test_canonical.py
- Timestamp:
- 12/29/08 12:24:05 (4 years ago)
- Location:
- pyyaml/trunk/tests3
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from pyyaml/trunk/tests)
-
test_canonical.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/tests3/test_canonical.py
r322 r328 8 8 if verbose: 9 9 for token in tokens: 10 print token10 print(token) 11 11 12 12 test_canonical_scanner.unittest = ['.canonical'] … … 18 18 if verbose: 19 19 for event in events: 20 print event20 print(event) 21 21 22 22 test_canonical_parser.unittest = ['.canonical'] … … 26 26 try: 27 27 output = list(yaml.canonical_load_all(data)) 28 except yaml.YAMLError ,exc:28 except yaml.YAMLError as exc: 29 29 if verbose: 30 print exc30 print(exc) 31 31 else: 32 32 raise AssertionError("expected an exception")
Note: See TracChangeset
for help on using the changeset viewer.
