Add flag about Py2 monkeypatch for tests

This commit is contained in:
Markus Unterwaditzer 2016-04-29 19:04:14 +02:00
parent f007cacdba
commit 96c90af1e3

View file

@ -17,6 +17,7 @@ def setup_logging():
click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG)
# XXX: Py2
@pytest.fixture(autouse=True)
def suppress_py2_warning(monkeypatch):
monkeypatch.setattr('vdirsyncer.cli._check_python2', lambda _: None)