pylint work, #99
This commit is contained in:
parent
6f964ce146
commit
3753dc5e60
9 changed files with 30 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue