summaryrefslogtreecommitdiff
path: root/dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-06 18:30:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-06 18:30:39 +0100
commit68a32bc9fda17e8a546c0bba9d113c4c4659f6bb (patch)
treee043bb32648a3c75289450c0f4252aaabc1d4593 /dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch
parent74a32c3ccafc7895a037d2b0cf73fc726286ec2e (diff)
gentoo auto-resync : 06:04:2024 - 18:30:38
Diffstat (limited to 'dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch')
-rw-r--r--dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch b/dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch
deleted file mode 100644
index 0193ef928775..000000000000
--- a/dev-python/graphviz/files/graphviz-0.20.1_fix_python3_12_test_deprecated_escape.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 5ce9fc5de4f2284baa27d7a8d68ab0885d032868 Mon Sep 17 00:00:00 2001
-From: Sebastian Bank <sebastian.bank@uni-leipzig.de>
-Date: Tue, 24 Oct 2023 20:39:52 +0200
-Subject: [PATCH] expect SyntaxWarning in test_deprecated_escape() under Python
- 3.12
-
-https://docs.python.org/3.12/whatsnew/3.12.html#other-language-changes
----
- tests/test_quoting.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/tests/test_quoting.py b/tests/test_quoting.py
-index e4ece573bd..3692d38a12 100644
---- a/tests/test_quoting.py
-+++ b/tests/test_quoting.py
-@@ -1,3 +1,4 @@
-+import sys
- import warnings
-
- import pytest
-@@ -14,7 +15,8 @@ def test_deprecated_escape(recwarn, char):
- escape = eval(rf'"\{char}"')
-
- assert len(recwarn) == 1
-- w = recwarn.pop(DeprecationWarning)
-+ w = recwarn.pop(DeprecationWarning if sys.version_info < (3, 12)
-+ else SyntaxWarning)
- assert str(w.message).startswith('invalid escape sequence')
-
- assert escape == f'\\{char}'