- properly include _pytest.assertion in distribution

- import assertion only at import-test module time
This commit is contained in:
holger krekel
2011-05-31 15:21:08 +02:00
parent 5690beab5a
commit 6c90059342
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ import inspect
import sys
import pytest
from py._code.code import TerminalRepr
from _pytest import assertion
import _pytest
cutdir = py.path.local(_pytest.__file__).dirpath()
@@ -227,6 +226,7 @@ class Module(pytest.File, PyCollectorMixin):
def _importtestmodule(self):
# we assume we are only called once per module
from _pytest import assertion
assertion.before_module_import(self)
try:
try: