fix #1171 -- support `setup.py test`

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
flake8

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>

Conflicts:
	nikola/plugins/command/new_post.py
Merge branch 'master' into now_with_tz