diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-19 00:09:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-19 00:09:54 +0100 |
commit | e8df704cf9b5e9e517317b8912377c0a8ca0d11e (patch) | |
tree | ab3f43045fb1d37471f8217c8547d2120bb3d1da /dev-python/zope-exceptions/files | |
parent | ccaccfe4f1da8c11d9fa110f6e4eb847358769d7 (diff) |
gentoo auto-resync : 19:06:2024 - 00:09:54
Diffstat (limited to 'dev-python/zope-exceptions/files')
-rw-r--r-- | dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch b/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch new file mode 100644 index 000000000000..623b53b32376 --- /dev/null +++ b/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch @@ -0,0 +1,24 @@ +diff --git a/src/zope/exceptions/tests/test_exceptionformatter.py b/src/zope/exceptions/tests/test_exceptionformatter.py +index 92ea79a..0e18d8d 100644 +--- a/src/zope/exceptions/tests/test_exceptionformatter.py ++++ b/src/zope/exceptions/tests/test_exceptionformatter.py +@@ -24,6 +24,7 @@ from urllib.error import HTTPError + + + IS_PY39_OR_GREATER = sys.version_info >= (3, 9) ++IS_PY313_OR_GREATER = sys.version_info >= (3, 13) + + + class TextExceptionFormatterTests(unittest.TestCase): +@@ -763,8 +764,10 @@ class Test_format_exception(unittest.TestCase): + </ul><p> File "<string>", line 1<br /> + import<br /> + ^<br /> +- SyntaxError: invalid syntax<br /> ++ SyntaxError: {error}<br /> + </p>""").format( ++ error="Expected one or more names after 'import'" ++ if IS_PY313_OR_GREATER else 'invalid syntax', + module='zope.exceptions.tests.test_exceptionformatter', + fn='test_format_exception_as_html', + ) |