Exemple #1
0
def test_issue_42_takes_ref_const():
    from issues import IssueString, takes_ref_const_string

    if is_pyd:
        # pyd can't convert to const
        with pytest.raises(RuntimeError):
            takes_ref_const_string(IssueString())
Exemple #2
0
def test_issue_42_takes_in():
    from issues import IssueString, takes_in_string
    import pytest

    # pyd can't convert to const
    with pytest.raises(RuntimeError):
        takes_in_string(IssueString())
def test_issue_42_takes_ref():
    from issues import IssueString, takes_ref_string
    takes_ref_string(IssueString())
def test_issue_42_takes_scope():
    from issues import IssueString, takes_scope_string
    takes_scope_string(IssueString())