100% coverage for vdirsyncer.__init__

This commit is contained in:
Markus Unterwaditzer 2016-02-25 02:22:38 +01:00
parent 5300e6816b
commit f3c459eb7d

View file

@ -7,7 +7,7 @@ from __future__ import print_function
try: try:
from .version import version as __version__ # noqa from .version import version as __version__ # noqa
except ImportError: except ImportError: # pragma: no cover
raise ImportError( raise ImportError(
'Failed to find (autogenerated) version.py. ' 'Failed to find (autogenerated) version.py. '
'This might be because you are installing from GitHub\'s tarballs, ' 'This might be because you are installing from GitHub\'s tarballs, '
@ -15,7 +15,7 @@ except ImportError:
) )
def _detect_faulty_requests(): def _detect_faulty_requests(): # pragma: no cover
import requests import requests
if 'dist-packages' not in requests.__file__: if 'dist-packages' not in requests.__file__:
return return