Commit a6bcefca authored by Guido van Rossum's avatar Guido van Rossum

When testing all stdlib modules, ignore test_pep263.py which is encoded

in KOI8-R.
parent 70d2b890
...@@ -34,6 +34,7 @@ COMMENT '# NEWLINE' (3, 17) (3, 26) ...@@ -34,6 +34,7 @@ COMMENT '# NEWLINE' (3, 17) (3, 26)
NEWLINE '\\n' (3, 26) (3, 27) NEWLINE '\\n' (3, 26) (3, 27)
DEDENT '' (4, 0) (4, 0) DEDENT '' (4, 0) (4, 0)
' # Emacs hint
There will be a bunch more tests of specific source patterns. There will be a bunch more tests of specific source patterns.
...@@ -184,6 +185,8 @@ def test_main(): ...@@ -184,6 +185,8 @@ def test_main():
testdir = os.path.dirname(f) or os.curdir testdir = os.path.dirname(f) or os.curdir
testfiles = glob.glob(testdir + os.sep + 'test*.py') 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'): if not is_resource_enabled('compiler'):
testfiles = random.sample(testfiles, 10) testfiles = random.sample(testfiles, 10)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment