Mercurial > cpython-lru_cache-weakref
annotate Tools/pybench/Setup.py @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | ef48e48f066e |
| children |
| rev | line source |
|---|---|
|
59518
ef48e48f066e
normalize shebang lines to #!/usr/bin/env python
Benjamin Peterson <benjamin@python.org>
parents:
45717
diff
changeset
|
1 #!/usr/bin/env python |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
2 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
3 # Setup file for pybench |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
4 # |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
5 # This file has to import all tests to be run; it is executed as |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
6 # Python source file, so you can do all kinds of manipulations here |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
7 # rather than having to edit the tests themselves. |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
8 # |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
9 # Note: Please keep this module compatible to Python 1.5.2. |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
10 # |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
11 # Tests may include features in later Python versions, but these |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
12 # should then be embedded in try-except clauses in this configuration |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
13 # module. |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
14 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
15 # Defaults |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
16 Number_of_rounds = 10 |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
17 Warp_factor = 10 |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
18 |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
19 # Import tests |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
20 from Arithmetic import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
21 from Calls import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
22 from Constructs import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
23 from Lookups import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
24 from Instances import * |
|
38375
52d1399e1c6d
Add -t option to allow easy test selection.
Steve Holden <steve@holdenweb.com>
parents:
37857
diff
changeset
|
25 try: |
|
52d1399e1c6d
Add -t option to allow easy test selection.
Steve Holden <steve@holdenweb.com>
parents:
37857
diff
changeset
|
26 from NewInstances import * |
|
38801
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
27 except ImportError: |
|
2167105123e4
Updated to pybench 2.0.
Marc-André Lemburg <mal@egenix.com>
parents:
38392
diff
changeset
|
28 pass |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
29 from Lists import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
30 from Tuples import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
31 from Dict import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
32 from Exceptions import * |
|
45717
15842094b089
Add tests for with and finally performance to pybench.
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
38801
diff
changeset
|
33 try: |
|
15842094b089
Add tests for with and finally performance to pybench.
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
38801
diff
changeset
|
34 from With import * |
|
15842094b089
Add tests for with and finally performance to pybench.
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
38801
diff
changeset
|
35 except SyntaxError: |
|
15842094b089
Add tests for with and finally performance to pybench.
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
38801
diff
changeset
|
36 pass |
|
37857
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
37 from Imports import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
38 from Strings import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
39 from Numbers import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
40 try: |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
41 from Unicode import * |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
42 except (ImportError, SyntaxError): |
|
a4d5cefc2de4
Adding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg <mal@egenix.com>
parents:
diff
changeset
|
43 pass |
