forked from pool/python-graphviz
- 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:
13
py314.patch
Normal file
13
py314.patch
Normal 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}"'
|
||||
Reference in New Issue
Block a user