Changeset 0f52d48 in mod_gnutls for test/mgstest/__init__.py
- Timestamp:
- Jan 8, 2020, 5:06:31 PM (12 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 482bafc
- Parents:
- baa0056
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/__init__.py
rbaa0056 r0f52d48 18 18 19 19 import fcntl 20 import os 21 import os.path 20 22 import sys 21 23 22 24 from contextlib import contextmanager 25 from unittest import SkipTest 23 26 24 27 class TestExpectationFailed(Exception): … … 88 91 else: 89 92 raise TestExpectationFailed(f'No match found for {regexp.pattern}!') 93 94 95 96 def require_apache_modules(*modules): 97 """Raise unittest.SkipTest if any of the given module files (full file 98 name) is not present in AP_LIBEXECDIR. 99 100 """ 101 mod_dir = os.environ['AP_LIBEXECDIR'] 102 for mod in modules: 103 if not os.path.isfile(os.path.join(mod_dir, mod)): 104 raise SkipTest(f'{mod} not found, skipping.')
Note: See TracChangeset
for help on using the changeset viewer.