-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
TST: testing not catching bad escape sequences in doc strings #11335
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
Comments
I only have this problem on my at-home machine. So maybe a setup issue. At work, which I thought was basically the same install, things work fine.... |
Please try if this fixes your issue. |
According to escaping-mechanism and character-level-inline-markup the backslash is a valid way to escape any character.
|
Yes, #11336 fixes the problem on my at-home machine (I didn't test your PR, but thats what I did to get the tests to run). OTOH, it doesn't a) explain why the two machines are different despite having the same operating system and python/matplotlib installed the same way, or b) how we can make sure future docstrings that have backslashes get an |
Python 3.6 introduced this as a silent warning https://bugs.python.org/issue27364. Maybe you have different configurations for warnings? That would also be the path to note missing raw strings in our code base. |
|
We should re-enable those warnings on travis (for both 2.2.x and master). |
This got fixed.... |
Did it? We still don't use |
Travis CI |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Doc strings like
Cause
SyntaxError: invalid escape sequence \s
on my machine. Somehow they aren't crashing the test suite?The text was updated successfully, but these errors were encountered: