Chandan Singh pushed to branch chandan/fix-pytest-get-marker at BuildStream / buildstream
Commits:
- 
25df050f
by Chandan Singh at 2019-01-15T19:35:16Z
 
1 changed file:
Changes:
| ... | ... | @@ -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 | 
 | 
