Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ansi escape chars in assertExpectedInline and add options to s…
…kip comments and to skip empty lines (pytorch#134248) I had a night mare rewriting tests in test_misc.py specifically : 1. graphs can have comments that refers to my files "/lsakka/.." we really dont care about comments add option to ignore comments. 2. empty lines added when EXPECTTEST_ACCEPT=1 are changed with linter causing tests to fail or linter fail! add flag to ignore empty lines. 3. EXPECTTEST_ACCEPT fails when the text have some not readable characters. those should not effect comparing strings, also those causes weird diffs comments when tests fails. I removed ansi_escape chars pytorch#133045 this is used in Pull Request resolved: pytorch#134248 Approved by: https://github.com/aorenste ghstack dependencies: pytorch#133639, pytorch#134364
- Loading branch information