Additionally, with the recent addition of the “-m” command line option you should be able to write:
py.test -m "not (slow or long)"
IOW, the “-m” option accepts an expression which can make use of markers as boolean values (if a marker does not exist on a test function it’s value is False, if it exists, it is True).