diff options
author | Guido van Rossum <guido@python.org> | 2007-08-01 18:06:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-01 18:06:13 (GMT) |
commit | a6bcefca8128d2eb1dff46037f23c111d4a44297 (patch) | |
tree | 596c2db73787354b8fddde8433e91ef8dfd1802f | |
parent | 70d2b890deb44c7132bcb9cfaa36a8313281fd2c (diff) | |
download | cpython-a6bcefca8128d2eb1dff46037f23c111d4a44297.zip cpython-a6bcefca8128d2eb1dff46037f23c111d4a44297.tar.gz cpython-a6bcefca8128d2eb1dff46037f23c111d4a44297.tar.bz2 |
When testing all stdlib modules, ignore test_pep263.py which is encoded
in KOI8-R.
-rw-r--r-- | Lib/test/test_tokenize.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 4d8d9f1..022b658 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -34,6 +34,7 @@ COMMENT '# NEWLINE' (3, 17) (3, 26) 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 @@ def test_main(): 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) |