[Notes] [Git][BuildStream/buildstream][chandan/fix-pytest-get-marker] conftest.py: Don't use deprecated get_marker() function



Title: GitLab

Chandan Singh pushed to branch chandan/fix-pytest-get-marker at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • conftest.py
    ... ... @@ -32,7 +32,7 @@ def pytest_addoption(parser):
    32 32
     
    
    33 33
     
    
    34 34
     def pytest_runtest_setup(item):
    
    35
    -    if item.get_marker('integration') and not item.config.getvalue('integration'):
    
    35
    +    if item.get_closest_marker('integration') and not item.config.getvalue('integration'):
    
    36 36
             pytest.skip('skipping integration test')
    
    37 37
     
    
    38 38
     
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]