Well, this sucks. I found out, while trying to refactor stdin, that my testing framework does not test fixer interactions. It started out simply: refactoring “print(‘omg’)” just turned into “print(u’omg’)” (without adding from __future__ import print_function). That was partially fixed. However, this led me to test others, and there are other cases where I get the wrong output. Fixes are on the way.
Edit: It works fine now; I just have to stay away from self.tree.was_changed.