Codebase list logbook / 854b2064-14b6-4be9-9d9b-f6a59b8db224/main tests / test_ci.py
854b2064-14b6-4be9-9d9b-f6a59b8db224/main

Tree @854b2064-14b6-4be9-9d9b-f6a59b8db224/main (Download .tar.gz)

test_ci.py @854b2064-14b6-4be9-9d9b-f6a59b8db224/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