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
===================== 2 passed, 2 deselected in 0.02s ======================
195
+
===================== 2 passed, 2 deselected in 0.01s ======================
196
196
197
197
.. note::
198
198
@@ -413,7 +413,7 @@ the test needs:
413
413
414
414
test_someenv.py s [100%]
415
415
416
-
============================ 1 skipped in 0.01s ============================
416
+
============================ 1 skipped in 0.00s ============================
417
417
418
418
and here is one that specifies exactly the environment needed:
419
419
@@ -499,7 +499,7 @@ The output is as follows:
499
499
$ pytest -q -s
500
500
Mark(name='my_marker', args=(<function hello_world at 0xdeadbeef>,), kwargs={})
501
501
.
502
-
1 passed in 0.01s
502
+
1 passed in 0.00s
503
503
504
504
We can see that the custom marker has its argument set extended with the function ``hello_world``. This is the key difference between creating a custom marker as a callable, which invokes ``__call__`` behind the scenes, and using ``with_args``.
505
505
@@ -623,7 +623,7 @@ then you will see two tests skipped and two executed tests as expected:
623
623
624
624
========================= short test summary info ==========================
625
625
SKIPPED [2] $REGENDOC_TMPDIR/conftest.py:13: cannot run on platform linux
626
-
======================= 2 passed, 2 skipped in 0.02s =======================
626
+
======================= 2 passed, 2 skipped in 0.01s =======================
627
627
628
628
Note that if you specify a platform via the marker-command line option like this:
629
629
@@ -711,7 +711,7 @@ We can now use the ``-m option`` to select one set:
711
711
test_module.py:8: in test_interface_complex
712
712
assert 0
713
713
E assert 0
714
-
===================== 2 failed, 2 deselected in 0.07s ======================
714
+
===================== 2 failed, 2 deselected in 0.02s ======================
715
715
716
716
or to select both "event" and "interface" tests:
717
717
@@ -739,4 +739,4 @@ or to select both "event" and "interface" tests:
739
739
test_module.py:12: in test_event_simple
740
740
assert 0
741
741
E assert 0
742
-
===================== 3 failed, 1 deselected in 0.07s ======================
742
+
===================== 3 failed, 1 deselected in 0.03s ======================
0 commit comments