mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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:
parent
c8ef6436d8
commit
2731494720
4 changed files with 7 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue