Ignore:
Timestamp:
Oct 4, 2013, 9:52:41 PM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Make it possible to skip long-running tests.

Set the environment variable `SKIP_LONG_RUNNING_TESTS` to "1" to
skip the tests. Of course it's recommended to run all tests from
time to time, at least before a release.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/__init__.py

    r1067 r1432  
     1import os
     2
     3
     4def skip_long_running_test_condition():
     5    """
     6    Helper function to use with `unittest.skipIf`.
     7
     8    This requires either Python >= 2.7 or the standalonge `unittest2`
     9    module.
     10    """
     11    skip_flag = os.environ.get("SKIP_LONG_RUNNING_TESTS", "0")
     12    return skip_flag == "1"
Note: See TracChangeset for help on using the changeset viewer.