-k filters on markers also #11452
-
| The -k option takes also markers into account. Based in the docs, this is unexpected (at least for me). import pytest
@pytest.mark.parametrize("foo", [
    pytest.param(0, id="some_id_with_mymark_in_it"),
    pytest.param(1, id="id1", marks=(pytest.mark.mymark))
])
def test_stuff(foo):
    print(f"{foo=}")Collecting tests using  Collecting tests using   | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            RonnyPfannschmidt
          
      
      
        Sep 19, 2023 
      
    
    Replies: 1 comment
-
| yes, this is due to the fact that markers started as keywords being expanded about 17-19 year ago | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        lodagro
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
yes, this is due to the fact that markers started as keywords being expanded about 17-19 year ago