Last active
January 6, 2018 06:45
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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