Skip to content

Instantly share code, notes, and snippets.

@public
Created January 19, 2014 16:21
Show Gist options
  • Select an option

  • Save public/8507074 to your computer and use it in GitHub Desktop.

Select an option

Save public/8507074 to your computer and use it in GitHub Desktop.
import pytest
print
print "VERSION", pytest.__version__
print "CONFIG --assert", pytest.config.getoption("--assert")
"""
=============================================================================== test session starts ===============================================================================
platform linux2 -- Python 2.7.5 -- pytest-2.5.1
plugins: xdist
collecting 0 items
VERSION 2.5.1
CONFIG --assert rewrite
collected 0 items
================================================================================ in 0.01 seconds =================================================================================
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment