Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created October 25, 2013 11:54
Show Gist options
  • Save hpk42/7153503 to your computer and use it in GitHub Desktop.
Save hpk42/7153503 to your computer and use it in GitHub Desktop.
import pytest
def test_hello(tmpdir):
print "hello using", tmpdir
assert 0
if __name__ == "__main__":
pytest.main(["--pyargs", "x"])
@hpk42
Copy link
Author

hpk42 commented Oct 25, 2013

save this file as "x.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment