Codebase list logbook / 7e41e78b-d633-4bb2-9787-9589652ceae7/main tests / test_ci.py
7e41e78b-d633-4bb2-9787-9589652ceae7/main

Tree @7e41e78b-d633-4bb2-9787-9589652ceae7/main (Download .tar.gz)

test_ci.py @7e41e78b-d633-4bb2-9787-9589652ceae7/mainraw · history · blame

# -*- coding: utf-8 -*-
import os

import pytest

from .utils import appveyor, travis

@appveyor
def test_appveyor_speedups():
    if os.environ.get('CYBUILD'):
        import logbook._speedups
    else:
        with pytest.raises(ImportError):
            import logbook._speedups

@travis
def test_travis_speedups():
    if os.environ.get('CYBUILD'):
        import logbook._speedups
    else:
        with pytest.raises(ImportError):
            import logbook._speedups