Ignore:
Timestamp:
Oct 4, 2013, 10:30:13 PM (7 years ago)
Author:
schwa
Branch:
default
amend_source:
391c003d2fc50d9b2e801a03d960d21f26c209bc
Message:
Defined own decorator for skipping long-running tests
to avoid code duplication.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/__init__.py

    r1432 r1433  
    11import os
     2import unittest
    23
    34
     
    1112    skip_flag = os.environ.get("SKIP_LONG_RUNNING_TESTS", "0")
    1213    return skip_flag == "1"
     14
     15
     16skip_long_running_test = unittest.skipIf(skip_long_running_test_condition(),
     17                                         "skipping long-running test")
Note: See TracChangeset for help on using the changeset viewer.