Uh oh!
There was an error while loading. Please reload this page.
gh-105540: Convert pytest tests of cases_generator to regular tests - #106713
Conversation
Fixing tests failure. I don't have access to Win, so I will experiment :) |
gvanrossum
left a comment
There was a problem hiding this comment.
Thank you, thank you, thank you!
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Uh oh!
There was an error while loading. Please reload this page.
sobolevn
commented
Jul 14, 2023
Looks like something broke our tests :( |
gvanrossum
commented
Jul 16, 2023
Huh, tests pass for me locally. Let me see if I can merge. |
gvanrossum
commented
Jul 16, 2023
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. |
gvanrossum
commented
Jul 16, 2023
Oh dang. I wish the closing |
sobolevn
commented
Jul 17, 2023
Thanks! I will continue to make them better, since they now are a part of |
gvanrossum
commented
Jul 17, 2023
Great, we need more eyeballs on this code generator. |
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: