15
0

- Add py314.patch to fix tests with Python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=40
This commit is contained in:
2025-09-10 09:07:33 +00:00
committed by Git OBS Bridge
commit f34bc0b804
6 changed files with 363 additions and 0 deletions

13
py314.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: graphviz-0.21/tests/test_quoting.py
===================================================================
--- graphviz-0.21.orig/tests/test_quoting.py
+++ graphviz-0.21/tests/test_quoting.py
@@ -17,7 +17,7 @@ def test_deprecated_escape(recwarn, char
assert len(recwarn) == 1
w = recwarn.pop(DeprecationWarning if sys.version_info < (3, 12)
else SyntaxWarning)
- assert str(w.message).startswith('invalid escape sequence')
+ assert 'invalid escape sequence' in str(w.message)
assert escape == f'\\{char}'
assert quoting.quote(escape) == f'"\\{char}"'