Changeset 328 for pyyaml/trunk/tests3/test_tokens.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_tokens.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/tests3/test_tokens.py
r322 r328 45 45 def test_tokens(data_filename, tokens_filename, verbose=False): 46 46 tokens1 = [] 47 tokens2 = open(tokens_filename, 'r b').read().split()47 tokens2 = open(tokens_filename, 'r').read().split() 48 48 try: 49 49 for token in yaml.scan(open(data_filename, 'rb')): … … 52 52 finally: 53 53 if verbose: 54 print "TOKENS1:", ' '.join(tokens1)55 print "TOKENS2:", ' '.join(tokens2)54 print("TOKENS1:", ' '.join(tokens1)) 55 print("TOKENS2:", ' '.join(tokens2)) 56 56 assert len(tokens1) == len(tokens2), (tokens1, tokens2) 57 57 for token1, token2 in zip(tokens1, tokens2):
Note: See TracChangeset
for help on using the changeset viewer.
