The following issues were found
Lib/test/test_import/data/unwritable/__init__.py
4 issues
Line: 1
Column: 1
import sys
class MyMod(object):
__slots__ = ['__builtins__', '__cached__', '__doc__',
'__file__', '__loader__', '__name__',
'__package__', '__path__', '__spec__']
def __init__(self):
for attr in self.__slots__:
setattr(self, attr, globals()[attr])
Reported by Pylint.
Line: 3
Column: 1
import sys
class MyMod(object):
__slots__ = ['__builtins__', '__cached__', '__doc__',
'__file__', '__loader__', '__name__',
'__package__', '__path__', '__spec__']
def __init__(self):
for attr in self.__slots__:
setattr(self, attr, globals()[attr])
Reported by Pylint.
Line: 3
Column: 1
import sys
class MyMod(object):
__slots__ = ['__builtins__', '__cached__', '__doc__',
'__file__', '__loader__', '__name__',
'__package__', '__path__', '__spec__']
def __init__(self):
for attr in self.__slots__:
setattr(self, attr, globals()[attr])
Reported by Pylint.
Line: 3
Column: 1
import sys
class MyMod(object):
__slots__ = ['__builtins__', '__cached__', '__doc__',
'__file__', '__loader__', '__name__',
'__package__', '__path__', '__spec__']
def __init__(self):
for attr in self.__slots__:
setattr(self, attr, globals()[attr])
Reported by Pylint.
Lib/test/test_importlib/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Lib/test/test_importlib/builtin/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Lib/test/test_importlib/extension/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Lib/test/test_eintr.py
4 issues
Line: 1
Column: 1
import os
import signal
import unittest
from test import support
from test.support import script_helper
@unittest.skipUnless(os.name == "posix", "only supported on Unix")
class EINTRTests(unittest.TestCase):
Reported by Pylint.
Line: 9
Column: 1
@unittest.skipUnless(os.name == "posix", "only supported on Unix")
class EINTRTests(unittest.TestCase):
@unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
def test_all(self):
# Run the tester in a sub-process, to make sure there is only one
# thread (for reliable signal delivery).
Reported by Pylint.
Line: 12
Column: 5
class EINTRTests(unittest.TestCase):
@unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
def test_all(self):
# Run the tester in a sub-process, to make sure there is only one
# thread (for reliable signal delivery).
script = support.findfile("_test_eintr.py")
script_helper.run_test_script(script)
Reported by Pylint.
Line: 12
Column: 5
class EINTRTests(unittest.TestCase):
@unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
def test_all(self):
# Run the tester in a sub-process, to make sure there is only one
# thread (for reliable signal delivery).
script = support.findfile("_test_eintr.py")
script_helper.run_test_script(script)
Reported by Pylint.
Lib/test/test_importlib/frozen/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Lib/test/test_importlib/import_/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Lib/test/test_codecmaps_kr.py
4 issues
Line: 1
Column: 1
#
# test_codecmaps_kr.py
# Codec mapping tests for ROK encodings
#
from test import multibytecodec_support
import unittest
class TestCP949Map(multibytecodec_support.TestBase_Mapping,
Reported by Pylint.
Line: 9
Column: 1
from test import multibytecodec_support
import unittest
class TestCP949Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'cp949'
mapfileurl = 'http://www.pythontest.net/unicode/CP949.TXT'
Reported by Pylint.
Line: 15
Column: 1
mapfileurl = 'http://www.pythontest.net/unicode/CP949.TXT'
class TestEUCKRMap(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'euc_kr'
mapfileurl = 'http://www.pythontest.net/unicode/EUC-KR.TXT'
# A4D4 HANGUL FILLER indicates the begin of 8-bytes make-up sequence.
Reported by Pylint.
Line: 25
Column: 1
pass_dectest = [(b'\xa4\xd4', '\u3164')]
class TestJOHABMap(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'johab'
mapfileurl = 'http://www.pythontest.net/unicode/JOHAB.TXT'
# KS X 1001 standard assigned 0x5c as WON SIGN.
# But the early 90s is the only era that used johab widely,
Reported by Pylint.
Lib/test/test_codecmaps_cn.py
4 issues
Line: 1
Column: 1
#
# test_codecmaps_cn.py
# Codec mapping tests for PRC encodings
#
from test import multibytecodec_support
import unittest
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
Reported by Pylint.
Line: 9
Column: 1
from test import multibytecodec_support
import unittest
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'gb2312'
mapfileurl = 'http://www.pythontest.net/unicode/EUC-CN.TXT'
class TestGBKMap(multibytecodec_support.TestBase_Mapping,
Reported by Pylint.
Line: 14
Column: 1
encoding = 'gb2312'
mapfileurl = 'http://www.pythontest.net/unicode/EUC-CN.TXT'
class TestGBKMap(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'gbk'
mapfileurl = 'http://www.pythontest.net/unicode/CP936.TXT'
class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
Reported by Pylint.
Line: 19
Column: 1
encoding = 'gbk'
mapfileurl = 'http://www.pythontest.net/unicode/CP936.TXT'
class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'gb18030'
mapfileurl = 'http://www.pythontest.net/unicode/gb-18030-2000.xml'
Reported by Pylint.
Lib/test/test_importlib/source/__main__.py
4 issues
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 1
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.
Line: 2
Column: 1
from . import load_tests
import unittest
unittest.main()
Reported by Pylint.