OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=40
14 lines
612 B
Diff
14 lines
612 B
Diff
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}"'
|