fix decorator to disable check on travis

This commit is contained in:
kakwa 2015-06-17 23:59:44 +02:00
parent 5508e4023a
commit c75fd2c568
1 changed files with 8 additions and 0 deletions

8
tests/disable.py Normal file
View File

@ -0,0 +1,8 @@
import os
def travis_disabled(f):
def _decorator(f):
print 'test has been disabled on travis'
if 'TRAVIS' in os.environ and os.environ['TRAVIS'] == 'yes':
return _decorator
else:
return f