unittest2pytest
unittest2pytest copied to clipboard
Would be nice: fix assertEqual with singletons
Currently, unittest2pytest converts this:
self.assertEqual(thing, None)
to:
assert thing == None
which pylint then complains about (as it should).
Arguably, the original line was wrong, but it would be a nice touch if unittest2pytest noticed the value and converted it to:
assert thing is None