Assert statements of the pytester plugin again benefit from assertion rewriting

Fix #1920
This commit is contained in:
Bruno Oliveira
2017-01-19 21:33:51 -02:00
parent d15724f74f
commit c477f09177
3 changed files with 22 additions and 1 deletions

View File

@@ -421,7 +421,7 @@ class PytestPluginManager(PluginManager):
importspec = "_pytest." + modname
else:
importspec = modname
self.rewrite_hook.mark_rewrite(modname)
self.rewrite_hook.mark_rewrite(importspec)
try:
__import__(importspec)
except ImportError as e: