[Python-checkins] r61976 - python/trunk/Lib/test/test_tokenize.py
christian.heimes
python-checkins at python.org
Thu Mar 27 12:46:54 CET 2008
Author: christian.heimes
Date: Thu Mar 27 12:46:37 2008
New Revision: 61976
Modified:
python/trunk/Lib/test/test_tokenize.py
Log:
Fixed tokenize tests
The tokenize module doesn't understand __future__.unicode_literals yet
Modified: python/trunk/Lib/test/test_tokenize.py
==============================================================================
--- python/trunk/Lib/test/test_tokenize.py (original)
+++ python/trunk/Lib/test/test_tokenize.py Thu Mar 27 12:46:37 2008
@@ -490,11 +490,17 @@
>>>
>>> tempdir = os.path.dirname(f) or os.curdir
>>> testfiles = glob.glob(os.path.join(tempdir, "test*.py"))
+
+ XXX: tokenize doesn not support __future__.unicode_literals yet
+ >>> blacklist = ("test_future4.py",)
+ >>> testfiles = [f for f in testfiles if not f.endswith(blacklist)]
>>> if not test_support.is_resource_enabled("compiler"):
... testfiles = random.sample(testfiles, 10)
...
>>> for testfile in testfiles:
- ... if not roundtrip(open(testfile)): break
+ ... if not roundtrip(open(testfile)):
+ ... print "Roundtrip failed for file %s" % testfile
+ ... break
... else: True
True
"""
More information about the Python-checkins
mailing list