Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-59013: Set breakpoint on the first executable line in pdb when usingbreak func#112470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
iritkatriel merged 6 commits intopython:mainfromgaogaotiantian:pdb-break-function
Jan 31, 2024
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
Fix test name, add multiline test
  • Loading branch information
@gaogaotiantian
gaogaotiantian committedNov 27, 2023
commit9c33910772f347b9c11902697f69a3f394eef51b
12 changes: 11 additions & 1 deletionLib/test/test_pdb.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2617,7 +2617,7 @@ def bœr():
('bœr', 2),
)

deftest_find_function_empty_file(self):
deftest_find_function_first_executable_line(self):
code = textwrap.dedent("""\
def foo(): pass

Expand All@@ -2627,10 +2627,20 @@ def bar():
def baz():
# comment
pass

def mul():
# code on multiple lines
code = compile(
'def f()',
'<string>',
'exec',
)
""").encode()

self._assert_find_function(code, 'foo', ('foo', 1))
self._assert_find_function(code, 'bar', ('bar', 4))
self._assert_find_function(code, 'baz', ('baz', 8))
self._assert_find_function(code, 'mul', ('mul', 12))

def test_issue7964(self):
# open the file as binary so we can force \r\n newline
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp