diff --git a/glymur/lib/config.py b/glymur/lib/config.py index e2b780a..e3a5c1d 100644 --- a/glymur/lib/config.py +++ b/glymur/lib/config.py @@ -1,6 +1,9 @@ """ Configure glymur to use installed libraries if possible. """ +# configparser is new in python3 (pylint/python-2.7) +# pylint: disable=F0401 + import ctypes from ctypes.util import find_library import os diff --git a/glymur/lib/test/test_openjp2.py b/glymur/lib/test/test_openjp2.py index 13c5975..54d8254 100644 --- a/glymur/lib/test/test_openjp2.py +++ b/glymur/lib/test/test_openjp2.py @@ -4,6 +4,10 @@ Tests for libopenjp2 wrapping functions. # R0904: Seems like pylint is fooled in this situation # W0142: using kwargs is ok in this context # pylint: disable=R0904,W0142 + +# unittest2 is python-2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import os import sys import tempfile diff --git a/glymur/lib/test/test_openjpeg.py b/glymur/lib/test/test_openjpeg.py index 5363a1f..91e6d84 100644 --- a/glymur/lib/test/test_openjpeg.py +++ b/glymur/lib/test/test_openjpeg.py @@ -1,6 +1,11 @@ """ Tests for OpenJPEG module. """ +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + +# pylint: disable=E1101,R0904 + import ctypes import re import sys @@ -12,8 +17,6 @@ else: import glymur -# pylint: disable=E1101,R0904 - @unittest.skipIf(glymur.lib.openjpeg.OPENJPEG is None, "Missing openjpeg library.") class TestOpenJPEG(unittest.TestCase): diff --git a/glymur/test/test_codestream.py b/glymur/test/test_codestream.py index 3913d44..f9d4d75 100644 --- a/glymur/test/test_codestream.py +++ b/glymur/test/test_codestream.py @@ -8,6 +8,9 @@ Test suite for codestream parsing. # tempfile.TemporaryDirectory, unittest.assertWarns introduced in 3.2 # pylint: disable=E1101 +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import os import struct import sys diff --git a/glymur/test/test_conformance.py b/glymur/test/test_conformance.py index 8c022bb..3c7c9c4 100644 --- a/glymur/test/test_conformance.py +++ b/glymur/test/test_conformance.py @@ -7,6 +7,8 @@ These tests deal with JPX/JP2/J2K images in the format-corpus repository. # E1101: assertWarns introduced in python 3.2 # pylint: disable=E1101 +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 import os from os.path import join diff --git a/glymur/test/test_icc.py b/glymur/test/test_icc.py index fc2f7c1..bf589a5 100644 --- a/glymur/test/test_icc.py +++ b/glymur/test/test_icc.py @@ -5,6 +5,9 @@ ICC profile tests. # unittest doesn't work well with R0904. # pylint: disable=R0904 +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import datetime import os import sys diff --git a/glymur/test/test_opj_suite.py b/glymur/test/test_opj_suite.py index bfefbc6..a264019 100644 --- a/glymur/test/test_opj_suite.py +++ b/glymur/test/test_opj_suite.py @@ -27,6 +27,9 @@ suite. # asserWarns introduced in python 3.2 (python2.7/pylint issue) # pylint: disable=E1101 +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import os import re import sys diff --git a/glymur/test/test_opj_suite_neg.py b/glymur/test/test_opj_suite_neg.py index 2f61675..e8675aa 100644 --- a/glymur/test/test_opj_suite_neg.py +++ b/glymur/test/test_opj_suite_neg.py @@ -8,6 +8,9 @@ seem like logical negative tests to add. # R0904: Not too many methods in unittest. # pylint: disable=R0904 +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import os import sys import tempfile diff --git a/glymur/test/test_opj_suite_write.py b/glymur/test/test_opj_suite_write.py index 09722dc..6cc37f3 100644 --- a/glymur/test/test_opj_suite_write.py +++ b/glymur/test/test_opj_suite_write.py @@ -5,6 +5,10 @@ suite. # C0103: method names longer that 30 chars are ok in tests, IMHO # R0904: Seems like pylint is fooled in this situation # pylint: disable=R0904,C0103 + +# unittest2 is python2.6 only (pylint/python-2.7) +# pylint: disable=F0401 + import os import sys import tempfile