8000 GH-103804: Add test for dis.findlinestarts by jkchandalia · Pull Request #103806 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-103804: Add test for dis.findlinestarts #103806

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 25, 2023
Merged
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
Clean whitespaces
  • Loading branch information
jkchandalia committed Apr 25, 2023
commit d34c250c2b9fbfd7cbb1e8912923ef051fc3f8d1
2 changes: 1 addition & 1 deletion Lib/test/test_dis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@ def test_findlabels(self):
def test_findlinestarts(self):
def func():
pass

code = func.__code__
offsets = [linestart[0] for linestart in dis.findlinestarts(code)]
self.assertEqual(offsets, [0, 2])
Expand Down
0