[Pytest-commit] commit/pytest: hpk42: remove unused imports (using "importchecker" project)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Oct 2 14:33:05 CEST 2013


1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/10b3d5df19ab/
Changeset:   10b3d5df19ab
User:        hpk42
Date:        2013-10-02 14:32:40
Summary:     remove unused imports (using "importchecker" project)
Affected #:  8 files

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/assertion/__init__.py
--- a/_pytest/assertion/__init__.py
+++ b/_pytest/assertion/__init__.py
@@ -3,7 +3,6 @@
 """
 import py
 import sys
-import pytest
 from _pytest.monkeypatch import monkeypatch
 from _pytest.assertion import util
 
@@ -19,7 +18,7 @@
 to provide assert expression information. """)
     group.addoption('--no-assert', action="store_true", default=False,
         dest="noassert", help="DEPRECATED equivalent to --assert=plain")
-    group.addoption('--nomagic', '--no-magic', action="store_true", 
+    group.addoption('--nomagic', '--no-magic', action="store_true",
         default=False, help="DEPRECATED equivalent to --assert=plain")
 
 class AssertionState:

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/core.py
--- a/_pytest/core.py
+++ b/_pytest/core.py
@@ -1,7 +1,7 @@
 """
 pytest PluginManager, basic initialization and tracing.
 """
-import sys, os
+import sys
 import inspect
 import py
 

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

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/nose.py
--- a/_pytest/nose.py
+++ b/_pytest/nose.py
@@ -1,7 +1,6 @@
 """ run test suites written for nose. """
 
 import pytest, py
-import inspect
 import sys
 from _pytest import unittest
 

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/pytester.py
--- a/_pytest/pytester.py
+++ b/_pytest/pytester.py
@@ -4,7 +4,6 @@
 import sys, os
 import codecs
 import re
-import inspect
 import time
 from fnmatch import fnmatch
 from _pytest.main import Session, EXIT_OK

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/recwarn.py
--- a/_pytest/recwarn.py
+++ b/_pytest/recwarn.py
@@ -1,14 +1,14 @@
 """ recording warnings during test function execution. """
 
 import py
-import sys, os
+import sys
 
 def pytest_funcarg__recwarn(request):
     """Return a WarningsRecorder instance that provides these methods:
 
     * ``pop(category=None)``: return last warning matching the category.
     * ``clear()``: clear list of warnings
-   
+
     See http://docs.python.org/library/warnings.html for information
     on warning categories.
     """

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/standalonetemplate.py
--- a/_pytest/standalonetemplate.py
+++ b/_pytest/standalonetemplate.py
@@ -6,7 +6,6 @@
 import sys
 import base64
 import zlib
-import imp
 
 class DictImporter(object):
     def __init__(self, sources):

diff -r f9516c998c1dd33b2130ad4ddc649fb0394cee10 -r 10b3d5df19ab31daca4bca40ef848049d7f6298b _pytest/unittest.py
--- a/_pytest/unittest.py
+++ b/_pytest/unittest.py
@@ -1,6 +1,6 @@
 """ discovery and running of std-library "unittest" style tests. """
 import pytest, py
-import sys, pdb
+import sys
 
 # for transfering markers
 from _pytest.python import transfer_markers

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list