UltiSnips/test/util.py

18 lines
342 B
Python
Raw Permalink Normal View History

import platform
try:
import unidecode
UNIDECODE_IMPORTED = True
except ImportError:
UNIDECODE_IMPORTED = False
2015-01-20 15:26:03 -05:00
def running_on_windows():
2015-01-20 15:26:03 -05:00
if platform.system() == 'Windows':
return 'Does not work on Windows.'
def no_unidecode_available():
if not UNIDECODE_IMPORTED:
2015-01-20 15:26:03 -05:00
return 'unidecode is not available.'