create the _pytest/assertion package

This commit is contained in:
Benjamin Peterson 2011-05-25 16:18:45 -05:00
parent e02d22aa4f
commit 491c05cea7
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import sys
from _pytest.monkeypatch import monkeypatch
try:
from _pytest.assertrewrite import rewrite_asserts
from _pytest.assertion.rewrite import rewrite_asserts
except ImportError:
rewrite_asserts = None
else:

View File

@ -95,7 +95,7 @@ class AssertionRewriter(ast.NodeVisitor):
# docstrings and __future__ imports.
aliases = [ast.alias(py.builtin.builtins.__name__, "@py_builtins"),
ast.alias("py", "@pylib"),
ast.alias("_pytest.assertrewrite", "@pytest_ar")]
ast.alias("_pytest.assertion.rewrite", "@pytest_ar")]
expect_docstring = True
pos = 0
lineno = 0

View File

@ -4,7 +4,7 @@ import pytest
ast = pytest.importorskip("ast")
from _pytest.assertrewrite import rewrite_asserts
from _pytest.assertion.rewrite import rewrite_asserts
def setup_module(mod):