Codebase list logbook / 788218b3-b7bb-49d1-81ba-4e959ad6885d/main tests / test_ci.py
788218b3-b7bb-49d1-81ba-4e959ad6885d/main

Tree @788218b3-b7bb-49d1-81ba-4e959ad6885d/main (Download .tar.gz)

test_ci.py @788218b3-b7bb-49d1-81ba-4e959ad6885d/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