From 3b08f674e3f771b49370edb144dab0958c8cf721 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 31 Aug 2021 08:59:54 +0100 Subject: gentoo resync : 31.08.2021 --- .../files/pytest-flakes-4.0.3-fix-py3.10.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch (limited to 'dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch') diff --git a/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch b/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch new file mode 100644 index 000000000000..35b4809c865b --- /dev/null +++ b/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch @@ -0,0 +1,17 @@ +From: Arthur Zamarin +Date: Fri, 27 Aug 2021 08:23:16 +0300 +Subject: [PATCH] test_syntax_error: fix for python 3.10 + +Signed-off-by: Arthur Zamarin +--- a/test_flakes.py ++++ b/test_flakes.py +@@ -20,7 +20,8 @@ for x in [] + pass + """) + result = testdir.runpytest("--flakes", "--ignore", testdir.tmpdir) +- assert "1: invalid syntax" in result.stdout.str() ++ assert ("1: invalid syntax" in result.stdout.str() or ++ "1: expected ':'" in result.stdout.str()) + assert 'passed' not in result.stdout.str() + + -- cgit v1.2.3