1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
import pytest
from .test_verify import *
pytestmark = [
pytest.mark.thread_unsafe(reason="FFI verifier is not thread-safe"),
# eliminate warning noise from common test modules that are repeatedly re-imported
pytest.mark.filterwarnings("ignore:reimporting:UserWarning"),
]
# This test file runs normally after test_verify. We only clean up the .c
# sources, to check that it also works when we have only the .so. The
# tests should run much faster than test_verify.
def setup_module():
import cffi.verifier
cffi.verifier.cleanup_tmpdir(keep_so=True)
|