Created
May 19, 2016 15:55
-
-
Save mattbennett/0267cce4f0ea365a7f0dacdf68f3eafc to your computer and use it in GitHub Desktop.
pytest and eventlet combination hanging on os x
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
import eventlet | |
eventlet.monkey_patch() | |
def pytest_configure(config): | |
import logging | |
logging.basicConfig(level=logging.DEBUG) # or comment out this line, works fine |
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
eventlet==0.19.0 | |
pytest==2.9.1 |
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
pytest_plugins = "pytester" | |
def test_bar(testdir): | |
testdir.makepyfile( | |
""" | |
def test_baz(): | |
import logging | |
log = logging.getLogger() | |
log.debug("hello") # comment out this line, works fine | |
assert "foo" == "foo" | |
""" | |
) | |
result = testdir.runpytest() | |
assert result.ret == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then:
On OS X:
On Debian Jessie (in docker):