Browse Source

Detect cron builds on Travis CI

tags/v0.0.1
Thom Wiggers 5 years ago
parent
commit
029146566e
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/helpers.py

+ 2
- 1
test/helpers.py View File

@@ -85,7 +85,8 @@ def skip_windows(message="This test is not supported on Windows"):
def slow_test(f):
@functools.wraps(f)
def wrapper(*args, **kwargs):
if 'CI' in os.environ and 'RUN_SLOW' not in os.environ:
if ('CI' in os.environ and 'RUN_SLOW' not in os.environ and
os.environ.get('TRAVIS_EVENT_TYPE') != 'cron'):
raise unittest.SkipTest("Slow test skipped on CI run")
return f(*args, **kwargs)
return wrapper


Loading…
Cancel
Save