Open sobolevn opened 2 years ago
Are there any tests that use assert x == y
in an unittest? I've never seen such code, but if you have any examples feel free to add an implementation for that.
CPython has lots of assert
tests with unittest
.
Examples:
I think that this is an error, but I would not push this change there 🙂 I will send a PR with this feature somewhere this week, though 👍
Ah, TIL. Would gladly accept a PR about it.
I think that there are some important limitations to this rule:
ast.[Async]FunctionDef
scope inside ast.ClassDef
test
prefix or postfixself
argument exists
I think the second option is better because:
-O
mode