File: fix-docstring-indentation-check.patch

package info (click to toggle)
metakernel 0.30.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: python: 5,099; makefile: 179; sh: 18
file content (19 lines) | stat: -rw-r--r-- 862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix docstring indentation check
 Updated test_get_help function to correctly check for
 docstring content without relying on indentation. Ensures
 alignment with Python's docstring formatting rules.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-12-03

--- a/metakernel/tests/test_magic.py
+++ b/metakernel/tests/test_magic.py
@@ -48,7 +48,7 @@ def test_get_help():
 
     dummy_help = d.get_help('line', 'dummy', 0)
     assert dummy_help.startswith("%dummy")
-    assert "    This is additional information on dummy" in d.line_dummy.__doc__, "Checking indents"
+    assert "This is additional information on dummy" in d.line_dummy.__doc__, "Checking indents"
     assert "\nThis is additional information on dummy" in dummy_help, "Checking indent removal"
 
     dummy_help = d.get_help('line', 'dummy', 1)