]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Pylint: tests: remove unused imports
authorMartin <martin.basti@gmail.com>
Fri, 1 Jul 2016 23:46:33 +0000 (01:46 +0200)
committerMartin <martin.basti@gmail.com>
Fri, 1 Jul 2016 23:46:33 +0000 (01:46 +0200)
tests/test_dnssec.py
tests/test_exceptions.py
tests/test_generate.py
tests/test_grange.py
tests/test_message.py
tests/test_name.py
tests/test_rdtypeanyeui.py

index 83d548d836111809d478b90028787131902353d1..a6cb264ead6e8e8fdbf92f077961c27fc81e3009 100644 (file)
@@ -226,9 +226,9 @@ class DNSSECValidatorTestCase(unittest.TestCase):
 if __name__ == '__main__':
     import_ok = False
     try:
-        import Crypto.Util.number
+        import Crypto.Util.number  # pylint: disable=unused-import
         import_ok = True
-    except:
+    except ImportError:
         pass
     if import_ok:
         unittest.main()
index 8d04cc2584a068a43de1e61f4be78684f90d437d..4e0710705fbfcaaf12a847220f0e932e659b83a8 100644 (file)
@@ -13,7 +13,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import binascii
 try:
     import unittest2 as unittest
 except ImportError:
index a72305348188d7087ab3e5f5f0cc839159d86423..cbd22543976bb39f85c356e271c2c4385becd2a1 100644 (file)
@@ -16,8 +16,6 @@
 import sys
 sys.path.insert(0, '../')  # Force the local project to be *the* dns
 
-import filecmp
-import os
 try:
     import unittest2 as unittest
 except ImportError:
@@ -36,7 +34,6 @@ import pprint
 
 pp = pprint.PrettyPrinter(indent=2)
 
-import pdb
 example_text = """$TTL 1h
 $ORIGIN 0.0.192.IN-ADDR.ARPA.
 $GENERATE 1-2 0 CNAME SERVER$.EXAMPLE.
index c2bbb192219f81a82d3ca14ea5ba60f2bac30147..bdb64b7021462191c8755ff6188d26109442ec5a 100644 (file)
@@ -16,8 +16,6 @@
 import sys
 sys.path.insert(0, '../')
 
-import filecmp
-import os
 try:
     import unittest2 as unittest
 except ImportError:
@@ -27,9 +25,6 @@ import dns
 import dns.exception
 import dns.grange
 
-import pdb
-
-
 
 class GRangeTestCase(unittest.TestCase):
 
index 4513b959615611a78b1beb691c777e82dcbcb368..780f3e98c804b56d33eb08ffe01f6cd1a182540e 100644 (file)
@@ -13,7 +13,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import os
 try:
     import unittest2 as unittest
 except ImportError:
index 645cf75918c9070280abcf2fff6f0cffb9aa7820..ea19b95a9cefab1da2cfb43ac88ee1b96fff0f6d 100644 (file)
@@ -19,7 +19,6 @@ except ImportError:
     import unittest
 
 from io import BytesIO
-import socket
 
 import dns.name
 import dns.reversename
index fa8339f338a6936bc3229b5216258b10d7f014a9..e9d030309f8d49139fbb695866bddc6580da041e 100644 (file)
@@ -18,7 +18,7 @@ try:
     import unittest2 as unittest
 except ImportError:
     import unittest
-from io import BytesIO, StringIO
+from io import BytesIO
 
 import dns.rrset
 import dns.rdtypes.ANY.EUI48