The 80-column guide is intended not only for people coding on the 1980 barkley unix terminals, but also ensures consistency in projects. Because of this, you can customize the GUI of your IDE as you see fit and make sure that this is good for all of your various projects.
Alas, sometimes the best solution is to break it, this is an extremely rare case, but it will certainly happen. And jusst for this reason, you can mark this line with a comment: # noinspection PyPep8 so you can turn your code into:
def setUp(self):
This will allow you to follow the recommendations of pep8, including line restrictions, and not worry about this false message. Unfortunately, this directive is not supported by all checkers, but it slowly gets there.
source share