remove unused imports (using "importchecker" project)

This commit is contained in:
holger krekel 2013-10-02 14:32:40 +02:00
parent f83a65c8ae
commit 05f6422392
8 changed files with 5 additions and 11 deletions

View File

@ -3,7 +3,6 @@ support for presenting detailed information in failing assertions.
""" """
import py import py
import sys import sys
import pytest
from _pytest.monkeypatch import monkeypatch from _pytest.monkeypatch import monkeypatch
from _pytest.assertion import util from _pytest.assertion import util

View File

@ -1,7 +1,7 @@
""" """
pytest PluginManager, basic initialization and tracing. pytest PluginManager, basic initialization and tracing.
""" """
import sys, os import sys
import inspect import inspect
import py import py

View File

@ -2,14 +2,12 @@
import py import py
import pytest, _pytest import pytest, _pytest
import inspect
import os, sys, imp import os, sys, imp
try: try:
from collections import MutableMapping as MappingMixin from collections import MutableMapping as MappingMixin
except ImportError: except ImportError:
from UserDict import DictMixin as MappingMixin from UserDict import DictMixin as MappingMixin
from _pytest.mark import MarkInfo
from _pytest.runner import collect_one_node, Skipped from _pytest.runner import collect_one_node, Skipped
tracebackcutdir = py.path.local(_pytest.__file__).dirpath() tracebackcutdir = py.path.local(_pytest.__file__).dirpath()

View File

@ -1,7 +1,6 @@
""" run test suites written for nose. """ """ run test suites written for nose. """
import pytest, py import pytest, py
import inspect
import sys import sys
from _pytest import unittest from _pytest import unittest

View File

@ -4,7 +4,6 @@ import py, pytest
import sys, os import sys, os
import codecs import codecs
import re import re
import inspect
import time import time
from fnmatch import fnmatch from fnmatch import fnmatch
from _pytest.main import Session, EXIT_OK from _pytest.main import Session, EXIT_OK

View File

@ -1,7 +1,7 @@
""" recording warnings during test function execution. """ """ recording warnings during test function execution. """
import py import py
import sys, os import sys
def pytest_funcarg__recwarn(request): def pytest_funcarg__recwarn(request):
"""Return a WarningsRecorder instance that provides these methods: """Return a WarningsRecorder instance that provides these methods:

View File

@ -6,7 +6,6 @@ sources = """
import sys import sys
import base64 import base64
import zlib import zlib
import imp
class DictImporter(object): class DictImporter(object):
def __init__(self, sources): def __init__(self, sources):

View File

@ -1,6 +1,6 @@
""" discovery and running of std-library "unittest" style tests. """ """ discovery and running of std-library "unittest" style tests. """
import pytest, py import pytest, py
import sys, pdb import sys
# for transfering markers # for transfering markers
from _pytest.python import transfer_markers from _pytest.python import transfer_markers