Merged revisions 85482 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85482 | antoine.pitrou | 2010-10-14 17:34:31 +0200 (jeu., 14 oct. 2010) | 4 lines

  Replace the "compiler" resource with the more generic "cpu", so
  as to mark CPU-heavy tests.
........
This commit is contained in:
Antoine Pitrou 2010-10-14 15:41:23 +00:00
parent c8ef6436d8
commit 2731494720
4 changed files with 7 additions and 6 deletions

View file

@ -516,13 +516,13 @@ Two string literals on the same line
True
Test roundtrip on random python modules.
pass the '-ucompiler' option to process the full directory.
pass the '-ucpu' option to process the full directory.
>>> import random
>>> tempdir = os.path.dirname(f) or os.curdir
>>> testfiles = glob.glob(os.path.join(tempdir, "test*.py"))
>>> if not support.is_resource_enabled("compiler"):
>>> if not support.is_resource_enabled("cpu"):
... testfiles = random.sample(testfiles, 10)
...
>>> for testfile in testfiles: