You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the tool. I just used it to mass-modernize asserts across a ~250k line project.
I found a bunch of bugs on the way. Rather than spam you with loads of individual issues, I’m reporting them all here. Happy to split them if you’d prefer, but I see development isn’t ongoing, so I don’t want to burden you.
I also see that Ruff has some powers to do this rewriting now, such as from its pytest-unittest-assertion rule, so maybe this tool is less relevant now.
Anyway, here’s the list, and thanks again!
It added a second isinstance argument outside of parentheses:
Hi
Thanks for the tool. I just used it to mass-modernize asserts across a ~250k line project.
I found a bunch of bugs on the way. Rather than spam you with loads of individual issues, I’m reporting them all here. Happy to split them if you’d prefer, but I see development isn’t ongoing, so I don’t want to burden you.
I also see that Ruff has some powers to do this rewriting now, such as from its
pytest-unittest-assertion
rule, so maybe this tool is less relevant now.Anyway, here’s the list, and thanks again!
isinstance
argument outside of parentheses:\
before a comment, which is aSyntaxError
:== True
tois True
didn’t work in many cases, same forFalse
/None
:places
argument topytest.approx
when not provided as a keyword argument:is not None
when there was amsg
argument:not
for an expression, which needed parnthesizing:assertEqual
call:(This call didn't get a chance to crash at runtime because the
NotImplementedError
was raised first.)...it ended up attaching the
==
for theassertEqual
later on in the file,.\
into multiline strings, changing their contents:The text was updated successfully, but these errors were encountered: