summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-10-02 20:14:07 -0700
committerArmin Kuster <akuster808@gmail.com>2023-10-12 09:58:05 -0400
commitccfa73f9d9e8f2beeae2b77773560d28402c0750 (patch)
tree7f353fae6c900acc81096ca00869b10e2b270f72 /meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch
parent2e9f97ae20f8238aed1c9e482468ed38e81d3273 (diff)
downloadmeta-openembedded-ccfa73f9d9e8f2beeae2b77773560d28402c0750.tar.gz
python3-pylint: Upgrade to 3.0.0
Package additional hidden files for ptests (test_primer.py) Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 79eac8e59ff7be9247e67dfb9033312f9fb7cf0e) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch
deleted file mode 100644
index a7637a5ca6..0000000000
--- a/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 341e19dd69d847f84859e85cabff5846e7da24c4 Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <tgamblin@baylibre.com>
3Date: Mon, 15 May 2023 09:26:04 -0400
4Subject: [PATCH] pylint: remove plugin pickle test
5
6Upstream-Status: Inappropriate (oe-specific)
7
8Upstream uses an assertion in the removed test to state that the test
9needs changing if the plugin loading succeeds. The same failure wasn't
10seen when running the tests on the host with pytest, so disable it by
11removing the test from the suite.
12
13Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
14---
15 tests/test_check_parallel.py | 22 ----------------------
16 1 file changed, 22 deletions(-)
17
18diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py
19index d56502eaf..34fec140f 100644
20--- a/tests/test_check_parallel.py
21+++ b/tests/test_check_parallel.py
22@@ -257,28 +257,6 @@ class TestCheckParallelFramework:
23 assert stats.statement == 18
24 assert stats.warning == 0
25
26- def test_linter_with_unpickleable_plugins_is_pickleable(self) -> None:
27- """The linter needs to be pickle-able in order to be passed between workers"""
28- linter = PyLinter(reporter=Reporter())
29- # We load an extension that we know is not pickle-safe
30- linter.load_plugin_modules(["pylint.extensions.overlapping_exceptions"])
31- try:
32- dill.dumps(linter)
33- raise AssertionError(
34- "Plugins loaded were pickle-safe! This test needs altering"
35- )
36- except (KeyError, TypeError, PickleError, NotImplementedError):
37- pass
38-
39- # And expect this call to make it pickle-able
40- linter.load_plugin_configuration()
41- try:
42- dill.dumps(linter)
43- except KeyError as exc:
44- raise AssertionError(
45- "Cannot pickle linter when using non-pickleable plugin"
46- ) from exc
47-
48 def test_worker_check_sequential_checker(self) -> None:
49 """Same as test_worker_check_single_file_no_checkers with SequentialTestChecker."""
50 linter = PyLinter(reporter=Reporter())
51--
522.40.1
53