From c75fd2c568d69b41c472ff9cb247c022710045dd Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 17 Jun 2015 23:59:44 +0200 Subject: [PATCH] fix decorator to disable check on travis --- tests/disable.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/disable.py diff --git a/tests/disable.py b/tests/disable.py new file mode 100644 index 0000000..089e3d6 --- /dev/null +++ b/tests/disable.py @@ -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