Skip to content

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented Jul 13, 2021

Ensure that we are parsing the correct segment ([right->end, left->start)) for BinOps.

https://bugs.python.org/issue43950

self.assertEqual(specialization_line.lstrip(), expected_specialization)

def test_specialization_variations(self):
self.assertSpecialized(lambda: 1/0, "~^~")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind lining up the carets with the code just so these tests are easier to read.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed to your fork the fix

@pablogsal pablogsal force-pushed the bpo-43950-proper-specialization branch from 442a9e0 to 85eabf2 Compare July 15, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants