Commits

Alexander Hesse  committed 6e7d0e9

updated py imports from _pytest/ to pypy._py

  • Participants
  • Parent commits 16b33a5
  • Branches prepare-split

Comments (0)

Files changed (27)

File _pytest/assertion/__init__.py

 """
 support for presenting detailed information in failing assertions.
 """
-import py
+import pypy._py as py
 import sys
 import pytest
 from _pytest.monkeypatch import monkeypatch

File _pytest/assertion/newinterpret.py

 import sys
 import ast
 
-import py
+import pypy._py as py
 from _pytest.assertion import util
 from _pytest.assertion.reinterpret import BuiltinAssertionError
 

File _pytest/assertion/oldinterpret.py

-import py
+import pypy._py as py
 import sys, inspect
 from compiler import parse, ast, pycodegen
 from _pytest.assertion.util import format_explanation, BuiltinAssertionError

File _pytest/assertion/reinterpret.py

 import sys
-import py
+import pypy._py as py
 from _pytest.assertion.util import BuiltinAssertionError
 
 class AssertionError(BuiltinAssertionError):

File _pytest/assertion/rewrite.py

 import sys
 import types
 
-import py
+import pypy._py as py
 from _pytest.assertion import util
 
 

File _pytest/assertion/util.py

 """Utilities for assertion debugging"""
 
-import py
+import pypy._py as py
 
 BuiltinAssertionError = py.builtin.builtins.AssertionError
 

File _pytest/capture.py

 """ per-test stdout/stderr capturing mechanisms, ``capsys`` and ``capfd`` function arguments.  """
 
-import pytest, py
+import pytest, pypy._py as py
 import os
 
 def pytest_addoption(parser):

File _pytest/config.py

 """ command line options, ini-file and conftest.py processing. """
 
-import py
+import pypy._py as py
 import sys, os
 from _pytest.core import PluginManager
 import pytest
 
 class Conftest(object):
     """ the single place for accessing values and interacting
-        towards conftest modules from py.test objects.
+        towards conftest modules from pypy._py.test objects.
     """
     def __init__(self, onimport=None, confcutdir=None):
         self._path2confmods = {}

File _pytest/core.py

 """
 import sys, os
 import inspect
-import py
+import pypy._py as py
 from _pytest import hookspec # the extension point definitions
 
 assert py.__version__.split(".")[:2] >= ['1', '4'], ("installation problem: "

File _pytest/doctest.py

 """ discover and run doctests in modules and test files."""
 
-import pytest, py
-from py._code.code import TerminalRepr, ReprFileLocation
+import pytest, pypy._py as py
+from pypy._py._code.code import TerminalRepr, ReprFileLocation
 
 def pytest_addoption(parser):
     group = parser.getgroup("collect")

File _pytest/genscript.py

 """ generate a single-file self-contained version of py.test """
-import py
+import pypy._py as py
 
 def find_toplevel(name):
     for syspath in py.std.sys.path:

File _pytest/helpconfig.py

 """ version info, help messages, tracing configuration.  """
-import py
+import pypy._py as py
 import pytest
 import os, inspect, sys
 from _pytest.core import varnames

File _pytest/junitxml.py

 Based on initial code from Ross Lawley.
 """
 
-import py
+import pypy._py as py
 import os
 import re
 import sys

File _pytest/main.py

 """ core implementation of testing process: init, session, runtest loop. """
 
-import py
+import pypy._py as py
 import pytest, _pytest
 import os, sys, imp
 tracebackcutdir = py.path.local(_pytest.__file__).dirpath()

File _pytest/mark.py

 """ generic mechanism for marking and selecting python functions. """
-import pytest, py
+import pytest, pypy._py as py
 
 def pytest_namespace():
     return {'mark': MarkGenerator()}
     """ Factory for :class:`MarkDecorator` objects - exposed as
     a ``py.test.mark`` singleton instance.  Example::
 
-         import py
+         import pypy._py as py
          @py.test.mark.slowtest
          def test_function():
             pass

File _pytest/nose.py

 """ run test suites written for nose. """
 
-import pytest, py
+import pytest, pypy._py as py
 import inspect
 import sys
 

File _pytest/pastebin.py

 """ submit failure or test session information to a pastebin service. """
-import py, sys
+import pypy._py as py, sys
 
 class url:
     base = "http://paste.pocoo.org"

File _pytest/pdb.py

 """ interactive debugging with PDB, the Python Debugger. """
 
-import pytest, py
+import pytest, pypy._py as py
 import sys
 
 def pytest_addoption(parser):

File _pytest/pytester.py

 """ (disabled by default) support for testing py.test and py.test plugins. """
 
-import py, pytest
+import pypy._py as py, pytest
 import sys, os
 import re
 import inspect
 import time
 from fnmatch import fnmatch
 from _pytest.main import Session, EXIT_OK
-from py.builtin import print_
+from pypy._py.builtin import print_
 from _pytest.core import HookRelay
 
 def pytest_addoption(parser):
 
     def contains(self, entries):
         __tracebackhide__ = True
-        from py.builtin import print_
+        from pypy._py.builtin import print_
         i = 0
         entries = list(entries)
         backlocals = py.std.sys._getframe(1).f_locals

File _pytest/python.py

 """ Python test discovery, setup and run of test functions. """
-import py
+import pypy._py as py
 import inspect
 import sys
 import pytest
-from py._code.code import TerminalRepr
+from pypy._py._code.code import TerminalRepr
 from _pytest.monkeypatch import monkeypatch
 
 import _pytest

File _pytest/recwarn.py

 """ recording warnings during test function execution. """
 
-import py
+import pypy._py as py
 import sys, os
 
 def pytest_funcarg__recwarn(request):

File _pytest/resultlog.py

 """ (disabled by default) create result information in a plain text file. """
 
-import py
+import pypy._py as py
 
 def pytest_addoption(parser):
     group = parser.getgroup("terminal reporting", "resultlog plugin options")

File _pytest/runner.py

 """ basic collect and runtest protocol implementations """
 
-import py, sys, time
-from py._code.code import TerminalRepr
+import pypy._py as py, sys, time
+from pypy._py._code.code import TerminalRepr
 
 def pytest_namespace():
     return {

File _pytest/skipping.py

 """ support for skip/xfail functions and markers. """
 
-import py, pytest
+import pypy._py as py, pytest
 import sys
 
 def pytest_addoption(parser):

File _pytest/terminal.py

 
 This is a good source for looking at the various reporting hooks.
 """
-import pytest, py
+import pytest, pypy._py as py
 import sys
 import os
 

File _pytest/tmpdir.py

 """ support for providing temporary directories to test functions.  """
-import pytest, py
+import pytest, pypy._py as py
 from _pytest.monkeypatch import monkeypatch
 
 class TempdirHandler:

File _pytest/unittest.py

 """ discovery and running of std-library "unittest" style tests. """
-import pytest, py
+import pytest, pypy._py as py
 import sys, pdb
 
 # for transfering markers