-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Get Mathtext \times
symbol from cmsy10
when using cmr10
.
#23702
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
Conversation
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.
One may consider a test. but I cannot really tell what would be the simplest test as a normal text
with `\times' does already work.
I think testing this isn't straightforward, since the missing multiplication sign logs a warning, but doesn't raise a user warning. (Otherwise, something similar to #20235 could be used to detect it.) One thing I missed: |
Perhaps https://docs.pytest.org/en/7.1.x/how-to/logging.html#caplog-fixture can help. |
I was more thinking about testing that the multiplication sign shows up (instead of ¤), rather than the warning thing. |
ba3891d
to
077ea7c
Compare
I think this would require an image comparison test? I could add it if required. |
Strange. How did the code coverage decrease. There are no uncovered lines reported in the diff. |
I do not really understand how that test works, but it does fail from time to time, so no worries about it. (Except for maybe people not reviewing as the build "fails" anyway...) |
48192cc
to
f53301d
Compare
PR Summary
Fixes #10029.
I felt that having all glyph fixes in the same place would result in cleaner code. This will also be easy to extend if, in the future, we plan to add more glyph substitutions.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).