summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-08-27 08:25:25 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-08-27 08:43:19 +0300
commit8fd1c67a64012976b3cfecf7e744fb791d28d1a2 (patch)
tree31a0cce5f1b636fd41b798ecc3c39a3476ed7de2 /dev-python/pytest-flakes/files
parentapp-arch/libarchive: x86 stable wrt bug #810523 (diff)
downloadgentoo-8fd1c67a64012976b3cfecf7e744fb791d28d1a2.tar.gz
gentoo-8fd1c67a64012976b3cfecf7e744fb791d28d1a2.tar.bz2
gentoo-8fd1c67a64012976b3cfecf7e744fb791d28d1a2.zip
dev-python/pytest-flakes: add 4.0.3, enable py3.10
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pytest-flakes/files')
-rw-r--r--dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch17
1 files changed, 17 insertions, 0 deletions
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 <arthurzam@gentoo.org>
+Date: Fri, 27 Aug 2021 08:23:16 +0300
+Subject: [PATCH] test_syntax_error: fix for python 3.10
+
+Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
+--- 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()
+
+