import pytest
@pytest.mark.mark3
class Test_mark():
@pytest.mark.mark2
def test_03(self):
a = 1
b = 2
c = 3
assert a==b
@pytest.mark.mark1
def test_04(self):
a = 1
b = 2
c = 3
print(1)
assert a<c
def test_01(self):
a = 1
b = 2
c = 3
print(1)
assert a > c
def test_02():
a = 1
b = 2
c = 3
print(1)
assert a == c
if __name__ == '__main__':
pytest.main(['-m mark3 and not mark1','test.py'])