[Python-3000-checkins] r56651 - python/branches/py3k-struni/Lib/test/test_tokenize.py
guido.van.rossum
python-3000-checkins at python.org
Wed Aug 1 20:06:14 CEST 2007
Author: guido.van.rossum
Date: Wed Aug 1 20:06:13 2007
New Revision: 56651
Modified:
python/branches/py3k-struni/Lib/test/test_tokenize.py
Log:
When testing all stdlib modules, ignore test_pep263.py which is encoded
in KOI8-R.
Modified: python/branches/py3k-struni/Lib/test/test_tokenize.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_tokenize.py (original)
+++ python/branches/py3k-struni/Lib/test/test_tokenize.py Wed Aug 1 20:06:13 2007
@@ -34,6 +34,7 @@
NEWLINE '\\n' (3, 26) (3, 27)
DEDENT '' (4, 0) (4, 0)
+' # Emacs hint
There will be a bunch more tests of specific source patterns.
@@ -184,6 +185,8 @@
testdir = os.path.dirname(f) or os.curdir
testfiles = glob.glob(testdir + os.sep + 'test*.py')
+ # Exclude test_pep263 which is encoded in KOI8-R
+ testfiles = [t for t in testfiles if not t.endswith("pep263.py")]
if not is_resource_enabled('compiler'):
testfiles = random.sample(testfiles, 10)
More information about the Python-3000-checkins
mailing list