8000 GH-94036: Fix more attribute location quirks by brandtbucher · Pull Request #95028 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-94036: Fix more attribute location quirks #95028

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 7 commits into from
Jul 22, 2022
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
fixup
  • Loading branch information
brandtbucher committed Jul 22, 2022
commit b1caf420a9e965ca4dc2e044cfdb7b40e9d989bc
3 changes: 2 additions & 1 deletion Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ def test_multiline_assert_rewritten_as_method_call(self):
ast.fix_missing_locations(new_node)
tree.body[0] = new_node
compile(tree, "<test>", "exec")

def test_push_null_load_global_positions(self):
source_template = """
import abc, dis
Expand Down Expand Up @@ -1300,6 +1300,7 @@ def f():
self.assertIsNotNone(end_column)
self.assertLessEqual((line, column), (end_line, end_column))


class TestExpressionStackSize(unittest.TestCase):
# These tests check that the computed stack size for a code object
# stays within reasonable bounds (see issue #21523 for an example
Expand Down
0