Ejemplo n.º 1
0
def test_init(init_fixture):

    init({'new_type': int}, ['__modifier'])
    assert 'new_type' in cp.base_types
    assert cp.extra_modifier is not None
    from pyclibrary.backends.ctypes import CTypesCLibrary
    assert 'new_type' in CTypesCLibrary._types_
Ejemplo n.º 2
0
def test_reinit_attempt(init_fixture):

    init()
    with pytest.raises(RuntimeError):
        init()