From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Mon, 30 Oct 2023 10:38:27 -0400
Subject: Fix tests to handle Python 3.13 stripping indents from docstrings

https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes

https://github.com/python/cpython/issues/81283

Origin: other, https://github.com/wolever/parameterized/pull/176
Bug-Debian: https://bugs.debian.org/1082239
Last-Update: 2024-11-05
---
 parameterized/test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/parameterized/test.py b/parameterized/test.py
index bcf0d30..d65f2d0 100644
--- a/parameterized/test.py
+++ b/parameterized/test.py
@@ -385,6 +385,8 @@ class TestParameterizedExpandDocstring(TestCase):
         actual_docstring = test_method.__doc__
         if rstrip:
             actual_docstring = actual_docstring.rstrip()
+        if sys.version_info[:2] >= (3, 13):
+            expected_docstring = inspect.cleandoc(expected_docstring)
         assert_equal(actual_docstring, expected_docstring)
 
     @parameterized.expand([param("foo")],
