summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-11-21 00:12:23 -0800
committerJeff Quast <contact@jeffquast.com>2014-11-21 00:12:23 -0800
commitd5168ce58eee6cad2f721524cb455f51f4261e4a (patch)
treec0e9eed680924dc91833a06bc19f5a30327e5cf2
parentdae0f109d093712a6c3efb3ef367ee12a4f0c905 (diff)
downloadastroid-pytest-fails-register-module-extender.tar.gz
return AstroidBuilder() value in py2pytest.pypytest-fails-register-module-extender
This closes issue #55. function pytest_transform() fails to return any value, causing NoneType exception in register_module_extender().
-rw-r--r--astroid/brain/py2pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/brain/py2pytest.py b/astroid/brain/py2pytest.py
index eb51fb3..8165a2e 100644
--- a/astroid/brain/py2pytest.py
+++ b/astroid/brain/py2pytest.py
@@ -5,7 +5,7 @@ from astroid.builder import AstroidBuilder
def pytest_transform():
- fake = AstroidBuilder(MANAGER).string_build('''
+ return AstroidBuilder(MANAGER).string_build('''
try:
import _pytest.mark