diff options
author | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 (GMT) |
commit | c43e79f3c87ebf19fec2e481068bf48262096716 (patch) | |
tree | 06558df755dbef762df2f222a89272d053b19f1d /Lib/test/test_tokenize.py | |
parent | 7eaf8223a03a6b11203d750284b35d8a5f27b4f0 (diff) | |
download | cpython-c43e79f3c87ebf19fec2e481068bf48262096716.zip cpython-c43e79f3c87ebf19fec2e481068bf48262096716.tar.gz cpython-c43e79f3c87ebf19fec2e481068bf48262096716.tar.bz2 |
Fix a buch of shallow test failures.
Note: in test_fileinput.py, two tests are disabled until I figure out how
to replace these.
Diffstat (limited to 'Lib/test/test_tokenize.py')
-rw-r--r-- | Lib/test/test_tokenize.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 7e1708e..4d8d9f1 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -80,7 +80,7 @@ if (x # The comments need to go in the right place """ import os, glob, random, time, sys -from cStringIO import StringIO +from io import StringIO from test.test_support import (verbose, findfile, is_resource_enabled, TestFailed) from tokenize import (tokenize, generate_tokens, untokenize, tok_name, @@ -189,6 +189,8 @@ def test_main(): for f in testfiles: # Print still working message since this test can be really slow + if verbose: + print(' round trip: ', f, file=sys.__stdout__) if next_time <= time.time(): next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL print(' test_main still working, be patient...', file=sys.__stdout__) |