Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
moved tests to syntax_function2.py
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
  • Loading branch information
arihant2math committed Feb 13, 2025
commit 3d8df6c6b1bb568d16ded3e090c57d8dc35f0eb4
15 changes: 0 additions & 15 deletions extra_tests/snippets/builtin_doc.py

This file was deleted.

18 changes: 18 additions & 0 deletions extra_tests/snippets/syntax_function2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ def foo():
assert foo.__module__ == "function"
assert foo.__globals__ is globals()


def f1():
"""
x
\ty
"""

assert f1.__doc__ == '\nx\ny\n'

def f2():
"""
\t x
\t\ty
"""


assert f2.__doc__ == '\nx\n y\n'

def my_func(a,):
return a+2

Expand Down