You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/example/parametrize.rst
+9-12
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ objects, they are still using the default pytest representation::
130
130
131
131
$ py.test test_time.py --collect-only
132
132
======= test session starts ========
133
-
platform linux -- Python 3.4.3, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1
133
+
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
134
134
rootdir: $REGENDOC_TMPDIR, inifile:
135
135
collected 6 items
136
136
<Module 'test_time.py'>
@@ -181,7 +181,7 @@ this is a fully self-contained example which you can run with::
181
181
182
182
$ py.test test_scenarios.py
183
183
======= test session starts ========
184
-
platform linux -- Python 3.4.2, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1
184
+
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
185
185
rootdir: $REGENDOC_TMPDIR, inifile:
186
186
collected 4 items
187
187
@@ -194,7 +194,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia
194
194
195
195
$ py.test --collect-only test_scenarios.py
196
196
======= test session starts ========
197
-
platform linux -- Python 3.4.2, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1
197
+
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
198
198
rootdir: $REGENDOC_TMPDIR, inifile:
199
199
collected 4 items
200
200
<Module 'test_scenarios.py'>
@@ -259,7 +259,7 @@ Let's first see how it looks like at collection time::
259
259
260
260
$ py.test test_backends.py --collect-only
261
261
======= test session starts ========
262
-
platform linux -- Python 3.4.2, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1
262
+
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
263
263
rootdir: $REGENDOC_TMPDIR, inifile:
264
264
collected 2 items
265
265
<Module 'test_backends.py'>
@@ -320,7 +320,7 @@ The result of this test will be successful::
320
320
321
321
$ py.test test_indirect_list.py --collect-only
322
322
======= test session starts ========
323
-
platform linux -- Python 3.4.2, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1
323
+
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
324
324
rootdir: $REGENDOC_TMPDIR, inifile:
325
325
collected 1 items
326
326
<Module 'test_indirect_list.py'>
@@ -369,7 +369,7 @@ argument sets to use for each test function. Let's run it::
369
369
$ py.test -q
370
370
F..
371
371
======= FAILURES ========
372
-
_______ TestClass.test_equals[1-2] ________
372
+
_______ TestClass.test_equals[2-1] ________
373
373
374
374
self = <test_parametrize.TestClass object at 0xdeadbeef>, a = 1, b = 2
375
375
@@ -397,11 +397,8 @@ is to be run with different sets of arguments for its three arguments:
397
397
Running it results in some skips if we don't have all the python interpreters installed and otherwise runs all combinations (5 interpreters times 5 interpreters times 3 objects to serialize/deserialize)::
398
398
399
399
. $ py.test -rs -q multipython.py
400
-
ssssssssssss...ssssssssssss
401
-
======= short test summary info ========
402
-
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:22: 'python3.3' not found
403
-
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:22: 'python2.6' not found
404
-
3 passed, 24 skipped in 0.12 seconds
400
+
...........................
401
+
27 passed in 0.12 seconds
405
402
406
403
Indirect parametrization of optional implementations/imports
0 commit comments