| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Fixing tests failure. I don't have access to Win, so I will experiment :) |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you, thank you, thank you!
Sorry, something went wrong.
|
|
||
| def prettify_filename(filename: str) -> str: | ||
| # Make filename more user-friendly and less platform-specific, | ||
| # it is only used for error reporting at this point. |
There was a problem hiding this comment.
That is incorrect, and is not the reason why we go through this much effort. The prettified filename is incorporated in the output (as part of the header explaining that this was a generated file) and must be the same regardless of where it was generated, otherwise you get spurious diffs when e.g. running the tool on Windows.
Sorry, something went wrong.
|
Looks like something broke our tests :( |
Sorry, something went wrong.
|
Huh, tests pass for me locally. Let me see if I can merge. |
Sorry, something went wrong.
|
If the tests pass this time I will merge this upstream. I don't care enough about the one comment to hold it up, and I'd like to add some new tests. |
Sorry, something went wrong.
|
Oh dang. I wish the closing """ of the input/output text fragments were one tab stop to the right. But it doesn't matter enough for another PR. |
Sorry, something went wrong.
|
Thanks! I will continue to make them better, since they now are a part of Lib/test :) |
Sorry, something went wrong.
|
Great, we need more eyeballs on this code generator. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I went ahead and converted them :)
Now they will be executed the same way as regular tests.
I've taken the approach we use for https://github.com/python/cpython/blob/main/Lib/test/test_clinic.py
Local run: