Skip to content

Instantly share code, notes, and snippets.

@jeremygray
Last active January 6, 2018 06:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremygray/b2c79a1f5585b9d40fec to your computer and use it in GitHub Desktop.
Save jeremygray/b2c79a1f5585b9d40fec to your computer and use it in GitHub Desktop.
py.testw: py.test, hacked to use a framework build of python in a conda-based installation (like pythonw does)
#!/Users/jgray/anaconda/python.app/Contents/MacOS/python
# above line was: #!/Users/jgray/anaconda/bin/python
# JRG: hacked py.test to use a framework build of python
# allows -k usage: py.testw -k polygon
# find your values inside your .../anaconda/bin/pythonw
if __name__ == '__main__':
import sys
# JRG add the next two lines:
import os
os.environ['PYTHONEXECUTABLE'] = '/Users/jgray/anaconda/python.app/Contents/MacOS/python'
from py.test import main
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment