コード例 #1
0
def test_bytes():
    from pybind11_tests import return_bytes, print_bytes

    assert print_bytes(return_bytes()) == "bytes[1 0 2 0]"
コード例 #2
0
def test_bytes():
    from pybind11_tests import return_bytes, print_bytes

    assert print_bytes(return_bytes()) == "bytes[1 0 2 0]"
コード例 #3
0
def test_bytes():
    from pybind11_tests import return_bytes, print_bytes

    if print_bytes(return_bytes()) != "bytes[1 0 2 0]":
        raise AssertionError