Skip to content

Commit

Permalink
Make tests compatible with Python 3.13
Browse files Browse the repository at this point in the history
Python compiler newly removes indent from docstrings
python/cpython#81283
  • Loading branch information
frenzymadness committed Jun 18, 2024
1 parent bb2edf7 commit acfa9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ipywidgets/ipywidgets/widgets/tests/test_docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_substitution(self):
def f():
""" Docstring with value {key} """

assert f.__doc__ == " Docstring with value 62 "
assert "Docstring with value 62" in f.__doc__

def test_unused_keys(self):
snippets = {'key': '62', 'other-key': 'unused'}
Expand All @@ -24,4 +24,4 @@ def test_unused_keys(self):
def f():
""" Docstring with value {key} """

assert f.__doc__ == " Docstring with value 62 "
assert "Docstring with value 62" in f.__doc__

0 comments on commit acfa9a3

Please sign in to comment.