diff --git a/tests/checkers/unittest_non_ascii_name.py b/tests/checkers/unittest_non_ascii_name.py index 0741a9fb08..2ef6c55e3a 100644 --- a/tests/checkers/unittest_non_ascii_name.py +++ b/tests/checkers/unittest_non_ascii_name.py @@ -4,7 +4,6 @@ from __future__ import annotations -import sys from collections.abc import Iterable import astroid @@ -20,9 +19,6 @@ class TestNonAsciiChecker(pylint.testutils.CheckerTestCase): CHECKER_CLASS = pylint.checkers.non_ascii_names.NonAsciiNameChecker checker: pylint.checkers.non_ascii_names.NonAsciiNameChecker - @pytest.mark.skipif( - sys.version_info < (3, 8), reason="requires python3.8 or higher" - ) def test_kwargs_and_position_only(self) -> None: """Even the new position only and keyword only should be found.""" node = astroid.extract_node( diff --git a/tests/functional/d/deprecated/deprecated_methods_py3.py b/tests/functional/d/deprecated/deprecated_methods_py3.py deleted file mode 100644 index 80428c79f3..0000000000 --- a/tests/functional/d/deprecated/deprecated_methods_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -""" Functional tests for method deprecation. """ -# pylint: disable=missing-docstring, super-init-not-called, not-callable -import base64 -import cgi -import inspect -import logging -import nntplib -import platform -import unittest -import xml.etree.ElementTree - - -class MyTest(unittest.TestCase): - def test(self): - self.assert_(True) # [deprecated-method] - -xml.etree.ElementTree.Element('tag').getchildren() # [deprecated-method] -xml.etree.ElementTree.Element('tag').getiterator() # [deprecated-method] -xml.etree.ElementTree.XMLParser('tag', None, None).doctype(None, None, None) # [deprecated-method] -nntplib.NNTP(None).xpath(None) # [deprecated-method] - - -inspect.getargspec(None) # [deprecated-method] -logging.warn("a") # [deprecated-method] -platform.popen([]) # [deprecated-method] -base64.encodestring("42") # [deprecated-method] -base64.decodestring("42") # [deprecated-method] -cgi.escape("a") # [deprecated-method] - - -class SuperCrash(unittest.TestCase): - - def __init__(self): - # should not crash. - super()() - -xml.etree.ElementTree.iterparse(None) - - -class Tests(unittest.TestCase): - - def test_foo(self): - self.assertEquals(2 + 2, 4) # [deprecated-method] - self.assertNotEquals(2 + 2, 4) # [deprecated-method] - self.assertAlmostEquals(2 + 2, 4) # [deprecated-method] - self.assertNotAlmostEquals(2 + 2, 4) # [deprecated-method] - self.assert_("abc" == "2") # [deprecated-method] - - self.assertRaisesRegex(ValueError, "exception") - self.assertRegex("something", r".+") diff --git a/tests/functional/d/deprecated/deprecated_methods_py3.rc b/tests/functional/d/deprecated/deprecated_methods_py3.rc deleted file mode 100644 index b56440977e..0000000000 --- a/tests/functional/d/deprecated/deprecated_methods_py3.rc +++ /dev/null @@ -1,2 +0,0 @@ -[testoptions] -max_pyver=3.7 diff --git a/tests/functional/d/deprecated/deprecated_methods_py3.txt b/tests/functional/d/deprecated/deprecated_methods_py3.txt deleted file mode 100644 index 9796114f66..0000000000 --- a/tests/functional/d/deprecated/deprecated_methods_py3.txt +++ /dev/null @@ -1,16 +0,0 @@ -deprecated-method:15::MyTest.test:Using deprecated method assert_() -deprecated-method:17:::Using deprecated method getchildren() -deprecated-method:18:::Using deprecated method getiterator() -deprecated-method:19:::Using deprecated method doctype() -deprecated-method:20:::Using deprecated method xpath() -deprecated-method:23:::Using deprecated method getargspec() -deprecated-method:24:::Using deprecated method warn() -deprecated-method:25:::Using deprecated method popen() -deprecated-method:26:::Using deprecated method encodestring() -deprecated-method:27:::Using deprecated method decodestring() -deprecated-method:28:::Using deprecated method escape() -deprecated-method:43::Tests.test_foo:Using deprecated method assertEquals() -deprecated-method:44::Tests.test_foo:Using deprecated method assertNotEquals() -deprecated-method:45::Tests.test_foo:Using deprecated method assertAlmostEquals() -deprecated-method:46::Tests.test_foo:Using deprecated method assertNotAlmostEquals() -deprecated-method:47::Tests.test_foo:Using deprecated method assert_() diff --git a/tests/functional/u/unnecessary/unnecessary_dunder_call_py38.rc b/tests/functional/u/unnecessary/unnecessary_dunder_call_py38.rc index afbcb7d432..28df6cccd9 100644 --- a/tests/functional/u/unnecessary/unnecessary_dunder_call_py38.rc +++ b/tests/functional/u/unnecessary/unnecessary_dunder_call_py38.rc @@ -1,3 +1,3 @@ [testoptions] -max_pyver=3.8 +max_pyver=3.9 except_implementations=PyPy diff --git a/tests/functional/u/unnecessary/unnecessary_dunder_call_py38_pypy.rc b/tests/functional/u/unnecessary/unnecessary_dunder_call_py38_pypy.rc index 413b991518..8d23335b67 100644 --- a/tests/functional/u/unnecessary/unnecessary_dunder_call_py38_pypy.rc +++ b/tests/functional/u/unnecessary/unnecessary_dunder_call_py38_pypy.rc @@ -1,3 +1,3 @@ [testoptions] -max_pyver=3.8 +max_pyver=3.9 except_implementations=CPython diff --git a/tests/pyreverse/test_diadefs.py b/tests/pyreverse/test_diadefs.py index 2b8bd5e324..06affe12e5 100644 --- a/tests/pyreverse/test_diadefs.py +++ b/tests/pyreverse/test_diadefs.py @@ -8,7 +8,6 @@ from __future__ import annotations -import sys from collections.abc import Iterator from pathlib import Path @@ -248,7 +247,6 @@ def test_known_values4(HANDLER: DiadefsHandler, PROJECT: Project) -> None: ] -@pytest.mark.skipif(sys.version_info < (3, 8), reason="Requires dataclasses") def test_regression_dataclasses_inference( HANDLER: DiadefsHandler, get_project: GetProjectCallable ) -> None: