Skip to content

pytest --pdb execute test cases which otherwise are skipped #2137

Closed
@gst

Description

@gst

Hi,

using pytest 3.0.5 (and xdist (1.15) + cov plugins (2.3.1)), under linux :

reproduce steps :

18:58 $ cat test_pytest_pdb_skip.py

import platform

import unittest2 as unittest


@unittest.skipIf(platform.system() != 'Windows', 'This test need to be run on Windows!')
class MyTestCase(unittest.TestCase):

    def test_one(self):
        self.assertTrue(False)

this is ok :
pytest -xv test_pytest_pdb_skip.py

this is not ok : the test is executed and here obviously fail
pytest --pdb -xv test_pytest_pdb_skip.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: unittestrelated to the unittest integration builtin plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions