Skip to content

Commit 572ddb2

Browse files
frenzymadnessmartinRenou
authored andcommitted
Make tests compatible with Python 3.13
Python compiler newly removes indent from docstrings python/cpython#81283
1 parent 73c98f0 commit 572ddb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ipywidgets/ipywidgets/widgets/tests/test_docutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_substitution(self):
1515
def f():
1616
""" Docstring with value {key} """
1717

18-
assert f.__doc__ == " Docstring with value 62 "
18+
assert "Docstring with value 62" in f.__doc__
1919

2020
def test_unused_keys(self):
2121
snippets = {'key': '62', 'other-key': 'unused'}
@@ -24,4 +24,4 @@ def test_unused_keys(self):
2424
def f():
2525
""" Docstring with value {key} """
2626

27-
assert f.__doc__ == " Docstring with value 62 "
27+
assert "Docstring with value 62" in f.__doc__

0 commit comments

Comments
 (0)