-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allowed text method to pass on multiline_text method specific arguments #1647
Conversation
👍 |
Can you add in the new parameters to |
Okay, I've added documentation. Let me know if you have any thoughts. I wasn't quite sure whether to specify the additional arguments individually, or to just reference |
@@ -121,6 +121,7 @@ def test_textsize_equal(self): | |||
size = draw.textsize(txt, ttf) | |||
draw.text((10, 10), txt, font=ttf) | |||
draw.rectangle((10, 10, 10 + size[0], 10 + size[1])) | |||
del draw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you adding del draw
to all the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that del draw
performs a cleanup operation to save memory. It was present on some tests, but not others. If you'd like to go the other way, and remove it in order to reduce unnecessary lines of code in the test suite, just say the word.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, as that seems to be an unrelated change in the test suite.
Allowed text method to pass on multiline_text method specific arguments
Resolves #1645